PDA

View Full Version : container populated with custom widgets



momesana
16th April 2006, 05:23
Hi,
have you ever seen beagle oder Firefox's Download-Dialog?
It is made up of scrollable container that contains an arbitrary number of custom-Widgets that provide the actuall functionality. The container itself has not much functionality. Every one of the single inner-widgets has its own context-Menu etc. and provides the means to interact with it.

Now I want to create something like that and I wonder how this can best be implemented. What Qt classes are best suited to be subclassed for the container? I want to have something that behaves like QListView, but as I said before would be able to containing custom-Widgets, which QListView unfortunately (as far as I know) is not capable of. What about the custom widgets? Should they be based on QWidget?

thanx in advance
momesana

wysota
16th April 2006, 05:51
QScrollArea+vertical layout as child+widgets of your choice placed in the layout.

momesana
16th April 2006, 21:02
QScrollArea+vertical layout as child+widgets of your choice placed in the layout.
Thanx.
Worked just fine :)