Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
GUI Programming Software IT Linux

QGtkStyle Offers Native Gtk Look For Qt Programs 64

sekra writes "A new project called QGtkStyle by Trolltech Labs gives Qt4 based applications the possibility to integrate natively into Gtk based desktops like Gnome or Xfce. Instead of simply imitating Gtk styles QGtkStyle uses the Gtk theme engine directly. The project is still considered experimental, but is another step into better integration between Qt and Gtk applications. A project at Google Code has been set up as well." Anything that makes the various excellent Free software desktops work better together deserves kudos.
This discussion has been archived. No new comments can be posted.

QGtkStyle Offers Native Gtk Look For Qt Programs

Comments Filter:
  • GTK-Qt (Score:5, Informative)

    by cozziewozzie ( 344246 ) on Thursday May 15, 2008 @10:06AM (#23417518)
    There is a similar thing, only other way around: GTK-Qt [kde-look.org], in fact it's 5 years old.

    It's good to have the option for letting Gtk users keep their look and feel with Qt options, but I wonder why it took this long?

    Is it because there wasn't much interest in Qt-based apps until now? It would surprise me, given the popularity of Amarok, K3B and the like
    • Re: (Score:3, Interesting)

      I'm glad to see this, and I had forgotten about the old engine. One of the first things I do on a new desktop is try to synchronise the desktop look and feel for Qt and GTK applications.

      I use Gnome but I still prefer Amarok and K3b (as you mentioned) to any Gnome offering so it has helped give me a coherent desktop with a much more unified feel. I think I'd like this better as it wouldn't lock me to finding widget themes that are only available for both DEs.
      • by kriston ( 7886 )
        Finally the gtk-qt-engine equivalent for KDE programs. I hate getting the wrong colors and fonts on Opera and K3b windows popping up.

        • Re: (Score:1, Interesting)

          by Anonymous Coward
          Opera only uses QT for the window itself. The widgets and everything else inside is their own toolkit.

          I can't remember if Opera said they were converting their toolkit completely to QT, but I don't think so.
    • It's Qt. Like KDE, there's lots and lots and lots of options...
    • this makes me wonder what happens when you try to use both at the same time?
    • Re: (Score:2, Interesting)

      by wroshyyr ( 688688 )
      I'd say it's because of interest. Maybe GTK users got used to having different widget sets with different programs (GTK1, GTK2), while Kde users were more interested in a consistent desktop.
      • by jZnat ( 793348 ) *
        Perhaps GNOME has had a bit more new users or just people who don't really care that much about toolkits and perfectly consistent UI guidelines due to distributions like Ubuntu. Besides, KDE applications don't look too out of place in GNOME, but I can't say the same about GNOME applications in KDE. :/
    • Re: (Score:3, Informative)

      by pizzach ( 1011925 )

      There is a similar thing, only other way around: GTK-Qt, in fact it's 5 years old.

      It's good to have the option for letting Gtk users keep their look and feel with Qt options, but I wonder why it took this long?

      Is it because there wasn't much interest in Qt-based apps until now? It would surprise me, given the popularity of Amarok, K3B and the like

      That answer is more simple than you think. Things like klearlooks caused good enough syndrome for a long period of time. It wouldn't surprise me if QGtkStyle leverages something new in Qt4 to make the emulation of gtk more easily possible. If you've seen the screenshots, QGtkStyle makes a good showcase of the flexibility of qt4.

    • Re:GTK-Qt (Score:4, Informative)

      by immcintosh ( 1089551 ) <slashdot@ianmcin ... .org minus punct> on Thursday May 15, 2008 @02:05PM (#23421348) Homepage

      Probably hasn't happened because there are perfectly good options for a unified look already. For example, the most attractive widget theme I've found for ANY toolkit is available uniformly for them all:

      QtCurve [kde-look.org]

      Highly configurable and very attractive and professional looking. Install GTK1+2 and QT3+4 versions and everything looks the same regardless of what you're doing.

      • Personally I quite liked Red Hat's original Bluecurve theme. Shame Fedora don't use it any more, because it was a really pretty, really functional theme for both major desktops (even with GTK1 support!) that was both attractive AND professional at the same time.
      • Nice. From the screenshots of the link, it looks very similar to Ubuntu's default Gtk theme, Human, except the icons are more systematic, less colourful and cartoonish, and slightly more space around (all typical of Gnome vs. KDE). I think I still prefer Human+Gnome - it's always been the unsubtle icons which put me off KDE visually. Much like the difference between TeX and Word: the latter is easier to do fun stuff, but scruffy. I wouldn't apply that to the Qt widget set though: QtCurve looks great and
        • Re: (Score:3, Informative)

          by immcintosh ( 1089551 )
          You can always install a Tango theme in KDE if you don't like their awful default icons. It's what my default KDE setup [kdemod.ath.cx] does actually. I'll agree, the default KDE theming (at least in KDE3) is godawful, but once you customize it with actually attractive alternatives, I find it's actually much more attractive than GNOME (at least for me, I think it's a product of my liking the way QT lays stuff out moreso than GTK). As for the pedigree of these themes, I believe they're both independently derived from Blu
    • Re: (Score:3, Interesting)

      by Workaphobia ( 931620 )
      The GTK hater in me says, why would anyone want to make Qt look more like GTK rather than the other way around?

      *clicks link* My God, they actually have GIMP looking quite reasonable, if only it weren't for its multi-window interface.

      Now, I wonder if you could get in some sort of infinite loop if you used both this and GTK-Qt at the same time.
    • Simple (Score:1, Interesting)

      by Anonymous Coward
      Because it's a bad idea.

      It's a good idea to make things look the same when they act the same, but it's even more important to make things look different when they act different. Qt and GTK+ act different in many subtle ways. To make one look like the other without actually acting like the other is a step backwards. It will look really cool and be much more frustrating to use; this is the kind of thing that is not a high priority for people who get paid to hack Linux.

      Ask anybody who's using a beta of Fire
  • Great. (Score:2, Insightful)

    Now if they could just improve the copy-and-paste and drag-n-drop integration issues (hint: There are Freedesktop.org standards for these, developers please, please, please make your apps support these), we'd be all set.
  • by Hatta ( 162192 ) on Thursday May 15, 2008 @10:39AM (#23417934) Journal
    How about the other way around? QT is far more attractive than GTK. And QT's file dialog doesn't suck nearly as bad as the GTK file dialog. Replacing that abomination would be the best thing to ever happen to linux on the desktop.
    • Re: (Score:3, Interesting)

      by MBGMorden ( 803437 )
      That's a matter of personal preference. QT is a strange beast to me. Take the look of any individual widget or icon and it doesn't look bad at all. Combine them all into a functioning app though and they just don't much together well to form an attractive overall interface. GTK seems simpler, more functional, and more elegant in my eyes.

      Given that the two of us seem to have differing viewpoints here, I'd not consider it too out of line to assume that many others may also fall to one side or the other.
    • Re: (Score:3, Insightful)

      by Anonymous Coward
      Reskinning GTK apps to look like QT apps has been around for about 5 years with the gtk-qt-engine.
    • Re: (Score:1, Offtopic)

      by tolan-b ( 230077 )
      Are people still going on about the GTK file dialogue after its redesign? Jeez... works fine here.

      Anyway, a skinning engine isn't going to replace the file dialogue.
  • Comment removed (Score:5, Interesting)

    by account_deleted ( 4530225 ) on Thursday May 15, 2008 @10:48AM (#23418026)
    Comment removed based on user account deletion
  • Unification! (Score:2, Insightful)

    All we need is unification of thechnologies: one to rule them all. With less fragmentation in resources we could get better products, while the customisability would remain untouched.
    • Re: (Score:1, Informative)

      by bsDaemon ( 87307 )
      Qt used to not be Free Software -- it was just free as in beer for "non-commercial" work. You couldn't make GPL programs that included it.

      GNOME was based around Gtk and started as an official GNU project to be completely Free Software because KDE was not, at the time.

      This has nothing to do with technology and everything to do with ideology. I doubt very much that it'll change anytime soon. Frankly, if it did, that would be a bigger detriment.

      Unification makes no sense once you realize WHY the projects ar
    • That's pretty unlikely to happen, for reasons ranging from licensing to ideological disagreements to technical limitations of making one product do everything for everyone. Fortunately, many areas of open-source software have closer to two major products (e.g. Firefox/Webkit, GNOME/KDE) which provides for some degree of choice while not quite being as fragmented as having a dozen products.
    • Re: (Score:1, Insightful)

      by Anonymous Coward
      Unification is BAD.
      This is true for software, markets, companies, countries, parties, and so on.

      The reason is, that there are different parts, because not every human wants exactly the same (feature, leader, laws, philosophy, target), and sometimes those things don't mix. If you force it anyway, most poeple will be unhappy most of the time.

      In this example we have the KDE people, who go for maximum configurability (at least until 4.0 where they went insane), and the Gnome people, who go for maximum "easyness
      • Well, we do have that. GNOME is the beginner mode and KDE is the expert mode. XFce is somewhere in the middle.

        Personally I prefer GNOME's design lately, even though KDE's technology is vastly better even in 3.5. Being based on Qt gives KDE a serious advantage, but it's a shame that doesn't always result in elegant designs.
        • by Nutria ( 679911 )
          GNOME is the beginner mode and KDE is the expert mode.

          I would say that GNOME is the get-out-of-my-way mode, and KDE is the who the "fsck needs 85,000 options" mode.

          I'm sure I would have liked KDE were I a teenager (pimp my ride, and all that crap), but now I just want to use the computer (whether it be for fun/games or programming or wasting time). IMNSHO, the two user issues that should be fixed in GNOME are:
          • the horribly-slow, limited-utility Gtk file chooser. This is one area where GNOME should copy MS
        • No, no, no. XMonad [xmonad.org] is the expert mode widow manager. Mouse not required. Programming ability probably required, since all the settings are hard coded. Then again, it's tiny and easy to understand, so that's not a bad thing.
  • QT/ GTK
    KDE / GNOME

    Sometimes I think Linux would be better off with one option instead of many.

    Sure technically "many options" is better but sometimes fewer options that are common across all machines would make the platform more desktop friendly.

    I just use a text console and bash for my servers, and just remote into them...

    • Actually, it would be better of with say, 4 or 5 "big" ones. Having just two often leads to incompatibilities, since each on their own have enough users/programs/support to be able to go ahead and do their own thing. If there are 5 popular "desktop environments", one of them can't just go their own way, because that would alienate 80% of the users/programs. They would have to remain compatible at the important levels.
      • I haven't used any of the "big" window managers, my preference is Windowmaker and GNUstep apps. THey seem to have less overhead and if they don't provide all the wizzy Window/Mac transitions ... you know, I really don't miss 'em.

        What's been holding GNUstep back? It doesn't work like Windows?
        • Re: (Score:1, Insightful)

          by Anonymous Coward
          The widgets are fugly. Camaelon is pretty ugly, too.
          • Re: (Score:1, Offtopic)

            by argent ( 18001 )
            I bet you think a Thinkpad is "fugly" too.

            The *step widgets are old, they're copying what NeXT (and Apple in Rhapsody) had in 1997. Updating the widgets to look like 2008 instead of 1997 is trivial compared to what QGtkStyle is doing, and the GNUstep frameworks are easy to modify. Look at what Apple did with the NeXTstep frameworks that they're copycatting.

            So even if they were "fugly", which they're not, that's an utter irrelevance.
    • Re: (Score:3, Interesting)

      by sayfawa ( 1099071 )
      I just use a text console and bash for my servers, and just remote into them...

      And how would you like it if someone took away that method and made you use a GUI in the name of consolidating options?
    • Sometimes I think Linux would be better off with one option instead of many.

      Sure, so long as it's the option I like...

    • Re: (Score:3, Interesting)

      by vdboor ( 827057 )

      Sometimes I think Linux would be better off with one option instead of many.

      On what information did you base this desision? It's not like Mac OS or Windows provide one way. Last time I checked, the Windows platform offers you standard widgets (=notepad look), MFC, ComCtl, VLC (Borland), Windows Forms (.Net), WPF (.Net3) and each Microsoft app has it's own toolbars again.

      MacOS gives you the choice between Cocoa and Carbon, and only gained a consistent look as of Mac OS 10.5.

      I'd suggest keeping both Gtk and Qt because each option obviously attracts a different group of developers

  • Qt4? We need Qt3! (Score:2, Flamebait)

    by IBBoard ( 1128019 )
    I read the title and thought "hurray, I can finally run the one app that I need that has a damned fugly Qt theme in amongst my Gnome desktop (VirtualBox)". Then I read the summary.

    What about all of the Qt3 apps? I know there's gtk-qt-engine to work the other way around, but given the huge number of Qt3 apps currently being used, can we not have a decent GTK look for them?

    If it wasn't for VirtualBox I wouldn't even need Qt. Amarok? No thanks, I'll take Exaile because it works and it fits in. K3B? Brasero see
    • I guess I'll continue pimping my favorite theme [kde-look.org] here even though I posted it in another thread too (since you seem to genuinely want something like it). It's attractive and available uniformly for both major versions of both toolkits. Give it a try.

      • Not bad, although I think I might have tried it before and decided against it because the RPM of it drew in too many dependencies for the sake of a theme that I only occasionally see. I'll see if it was that theme and whether it works better from the download.

        My only thought from the screenshot is that the buttons look a bit glossy (which is part of what I never liked about KDE) but we'll see how it works out in the end :)
        • Like, I said, it's HIGHLY configurable. Multiple glossiness levels going from none to way too damn much. The dependencies it needed were probably QT/GTK themselves. If you install the theme before any QT programs, for example, it'll pull in QT as well as all of ITS dependencies, but that's the same for really any theme.
          • Nope, I already had Qt because I already had VirtualBox installed and it required Qt anyway. I installed the bare minimum of Qt (why fill the machine with bloat for a single app?) so I think I'm currently using Platinum or something - one of the core ones. Hopefully I'll get a chance to try the other theme in the next few days.
  • i actually like having different "looks" for different apps. being able to right click on the screen to get the menu, so i don't have to have a "start" menu, is more important to me than uniformity. anyway, you can have it both ways without using either window manager. ie. gtk and qt are not gnome and kde.
  • Hot damed! (Score:1, Insightful)

    by Anonymous Coward
    Now KDE and my Qt apps can be as ugly as the Gnome apps! Whoohoo!
  • Uncanny... I was just telling someone that Qt4 applications not using the Gtk theme engine was the #1 reason Linux has not been more widely adopted!
  • Anything to help freedesktop.org, the respective DE teams, and others, to make standards to allow DEs to play together nicely deserves lots and lots of kudos. Users need to keep as much freedom as they can, and the freedom to easily use the DE they want and to switch between them is a critical part in preserving these freedoms.

Beware of Programmers who carry screwdrivers. -- Leonard Brandwein

Working...