Linked by Thom Holwerda on Tue 1st Dec 2009 19:03 UTC, submitted by poundsmack
Qt Nokia has released the latest version of its cross-platform toolkit Qt, version 4.6. As usual, it comes with a whole slew of improvements and new features, and this time, they even added a new platform into the mix.
Thread beginning with comment 397332
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: KDE
by puelocesar on Tue 1st Dec 2009 19:16 UTC in reply to "KDE"
puelocesar
Member since:
2008-10-30

Man how I wanted an elegant desktop environment written in Qt. It's kind of sad liking Gnome but hating Gtk, and loving Qt and hating KDE mentality of "complex is good" or "if doesn't have 451 buttons it isn't good".

Reply Parent Score: 3

RE[2]: KDE
by diegocg on Tue 1st Dec 2009 19:56 in reply to "RE: KDE"
diegocg Member since:
2005-07-08

"if doesn't have 451 buttons it isn't good".

You seem to be talking about a different KDE than the one I'm using...

Reply Parent Score: 14

RE[2]: KDE
by boldingd on Tue 1st Dec 2009 20:06 in reply to "RE: KDE"
boldingd Member since:
2009-02-19

I actually like GTK. In my limited experience, in GTK, more typing is involved, but things make more sense and it's easier to get things right. In particular, I like how containers (that provide layouts) are widgets themselves, meaning that you can put a complex layout with multiple widgets in it anywhere that you could put a single widget. That's not true in Qt (at least, not without a little extra work): there, layouts are a separate entity from widgets. This bit me recently trying to create a push-button in Qt that could accommodate arbitrary child widgets and layouts: that's just there in GTK, but I had to sub-class QFrame in Qt and override the mouseReleaseEvent (which got the job done, save for the minor quibble that the result doesn't look like a normal QPushButton).

Having said that, Qt is probably a much easier toolkit to use, and C++ facilities are pretty handy for adding new functionality to widgets. It kinda makes me want to try gtkmm.

Reply Parent Score: 4

RE[3]: KDE
by vivainio on Tue 1st Dec 2009 20:47 in reply to "RE[2]: KDE"
vivainio Member since:
2008-12-26

In particular, I like how containers (that provide layouts) are widgets themselves, meaning that you can put a complex layout with multiple widgets in it anywhere that you could put a single widget. That's not true in Qt (at least, not without a little extra work): there, layouts are a separate entity from widgets.


I think you may be misunderstanding something here. You can instantiate a QWidget (not subclass, just instantiate), set a layout on it, then add your child widgets there. The resulting QWidget can be used as you would use the layout object in Gtk, i.e. you can add it as a "single" widget to a place that accepts a single widget (e.g. another layout).

You can find 2 source snippets that do just this here:

http://qt.nokia.com/doc/4.6/layout.html#laying-out-widgets-in-code

Of course you could trivially create your QVBoxWidget that does what you want (i.e. avoid the single setLayout call), but I think you'll agree that it wouldn't really help things :-).

Reply Parent Score: 4

RE[3]: KDE
by leos on Tue 1st Dec 2009 21:16 in reply to "RE[2]: KDE"
leos Member since:
2005-09-21

I actually like GTK. In my limited experience, in GTK, more typing is involved, but things make more sense and it's easier to get things right. In particular, I like how containers (that provide layouts) are widgets themselves, meaning that you can put a complex layout with multiple widgets in it anywhere that you could put a single widget. That's not true in Qt (at least, not without a little extra work): there, layouts are a separate entity from widgets.


Normally you would insert a widget and set the layout inside that widget to get the behaviour you describe.

This bit me recently trying to create a push-button in Qt that could accommodate arbitrary child widgets and layouts: that's just there in GTK, but I had to sub-class QFrame in Qt and override the mouseReleaseEvent (which got the job done, save for the minor quibble that the result doesn't look like a normal QPushButton).


I'm curious why you wanted this? A huge button with arbitrary widgets inside? How would that even work if those widget should interact with input? Push buttons accept images and text, I don't think you should be putting other widgets inside one.

Reply Parent Score: 5

RE[2]: KDE
by SlackerJack on Tue 1st Dec 2009 21:08 in reply to "RE: KDE"
SlackerJack Member since:
2005-11-12

At least you can customise it, unlike another DE I could mention, which removes customisation on just about every release.

I'd rather customise and disable what you want than virtually no custimsation at all(an OS and DE come to mind).

Reply Parent Score: 4

RE[3]: KDE
by puelocesar on Wed 2nd Dec 2009 13:20 in reply to "RE[2]: KDE"
puelocesar Member since:
2008-10-30
RE[2]: KDE
by WereCatf on Wed 2nd Dec 2009 00:16 in reply to "RE: KDE"
WereCatf Member since:
2006-02-15

Man how I wanted an elegant desktop environment written in Qt. It's kind of sad liking Gnome but hating Gtk, and loving Qt and hating KDE mentality of "complex is good" or "if doesn't have 451 buttons it isn't good"

Darn. Couldn't have said it much better myself; I love how smooth the animations are in KDE and how much more advanced Qt feels compared to GTK+, but I just really hate how every KDE app includes a gazillion menu entries, buttons, layouts, heck, they seem to be stuffing the whole kitchen sink in there, too.

Oh well, this isn't a KDE thread though. Good thing to see Qt getting improvements, might be worth learning to use it myself too someday.

Reply Parent Score: 4

RE[3]: KDE
by Redeeman on Wed 2nd Dec 2009 00:49 in reply to "RE[2]: KDE"
Redeeman Member since:
2006-03-23


Darn. Couldn't have said it much better myself; I love how smooth the animations are in KDE and how much more advanced Qt feels compared to GTK+, but I just really hate how every KDE app includes a gazillion menu entries, buttons, layouts, heck, they seem to be stuffing the whole kitchen sink in there, too.

"i dont use this feature so nobody else should!"

on a related note, i just really hate how everyone stuffs the world with their children(aka you), which i cant use for anything.. please.. have them go away...

this is what you are saying, you do realize this?

Reply Parent Score: 1