QStackedWidget vs. QStackedLayout
Hi,
I need to have in my app area which changes while user interaction and both of these classes seem to be solution to my problem. I’ve read documentation of both and it’s very similar. So what are main differences? Is any of them obsolete/depreciated (as with *widget and *views)?
5 replies
OK, thanks for your answers – layout will do the work for me.
peppe: according to some documentation [doc.qt.nokia.com] it seems that widgets stays to be “compatible” with Qt3.
“These classes are less flexible than the view classes, and cannot be used with arbitrary models. We recommend that you use a model/view approach to handling data in item views unless you strongly need an item-based set of classes.”
OK, thanks for your answers – layout will do the work for me.peppe: according to some documentation [doc.qt.nokia.com] it seems that widgets stays to be “compatible” with Qt3.
“These classes are less flexible than the view classes, and cannot be used with arbitrary models. We recommend that you use a model/view approach to handling data in item views unless you strongly need an item-based set of classes.”
Their API is similar, sure, but this doesn’t make them outdated or deprecated. They have their (very limited and specific) use case, that’s it :)
You must log in to post a reply. Not a member yet? Register here!






