Results 1 to 3 of 3

Thread: container populated with custom widgets

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default container populated with custom widgets

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: container populated with custom widgets

    QScrollArea+vertical layout as child+widgets of your choice placed in the layout.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: container populated with custom widgets

    Quote Originally Posted by wysota
    QScrollArea+vertical layout as child+widgets of your choice placed in the layout.
    Thanx.
    Worked just fine

Similar Threads

  1. Custom Widgets and layout managers...
    By TemporalBeing in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2009, 13:48
  2. Can QListBox be populated by custom Widgets?
    By qtUser500 in forum Qt Tools
    Replies: 1
    Last Post: 26th February 2009, 14:14
  3. Replies: 4
    Last Post: 2nd December 2008, 04:19
  4. Replies: 2
    Last Post: 16th May 2008, 14:39
  5. picking geometry in qt custom widgets
    By notsonerdysunny in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2007, 23:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.