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 397358
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[4]: KDE
by boldingd on Tue 1st Dec 2009 21:07 UTC in reply to "RE[3]: KDE"
boldingd
Member since:
2009-02-19

While that is true, something about that approach just doesn't sit with me: I find treating containers as widgets to be more... elegant and orthogonal, I suppose. I think that model is just more elegant and flexible, and is easier for me to keep track of and reason about.

Reply Parent Score: 2

RE[5]: KDE
by vivainio on Tue 1st Dec 2009 21:36 in reply to "RE[4]: KDE"
vivainio Member since:
2008-12-26

While that is true, something about that approach just doesn't sit with me: I find treating containers as widgets to be more... elegant and orthogonal, I suppose.


QWidgets are containers are widgets. The layout (given by setLayout) just specifies how they should be sorted inside the container.

I don't know if either way is better/worse than the other. I guess the Gtk way involves one moving part less, but the difference is negligible (i.e. I feel like we are bikeshedding here ;-).

Reply Parent Score: 5

RE[6]: KDE
by boldingd on Tue 1st Dec 2009 21:39 in reply to "RE[5]: KDE"
boldingd Member since:
2009-02-19

No disagreement! I don't think that Qt is doing anything wrong by having Layouts and Widgets be separate things, I just like the gtk way better, and find it more intuitive. It's entirely a question of personal preference.

Reply Parent Score: 2