Results 1 to 3 of 3

Thread: Group or Set widget (image provided)

  1. #1
    Join Date
    May 2011
    Posts
    23
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Group or Set widget (image provided)

    Hi

    I would like to create a "group or set" widget, which will allow a user to group/ungroup layers as seen in the attached picture.

    I have done the layers using a custom tableview (in a test project), but I'm not sure how to do the grouping widget.

    Could somebody guide me as to how grouping/ungrouping can be achieved?

    (Image attached)

    Many thanks

    Jean
    layergroup.gif

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Group or Set widget (image provided)

    I would go for a tree model. To group items make them children of an item.

  3. The following user says thank you to Lykurg for this useful post:

    jeanremi (6th August 2011)

  4. #3
    Join Date
    May 2011
    Posts
    23
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Group or Set widget (image provided) [solved]

    Haha, it's funny, I completely forgot about tree containers!
    QTreeWidget is exactly what I needed :-)
    Thank you very much Lykurg.

    It's solved.

Similar Threads

  1. Replies: 6
    Last Post: 29th October 2010, 22:14
  2. Replies: 1
    Last Post: 19th May 2010, 19:17
  3. Replies: 2
    Last Post: 25th April 2009, 08:50
  4. How to find size provided by QScrollView
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2006, 09:26
  5. insert a widget into a group "on-the-fly"
    By soul_rebel in forum Qt Programming
    Replies: 4
    Last Post: 15th January 2006, 00:29

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.