Results 1 to 1 of 1

Thread: QTreeWidget item with multiple parents

  1. #1
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTreeWidget item with multiple parents

    I have a QtreeWidget with a bunch of QTreeWidgetItems. I want some of the items to have multiple parents. Is this possible? How would I do something like this:

    ParentItem1
    --Child1
    ----Child2
    --Child3
    ----Child4
    I want Child2 and Child4 to be the same item. So if I were to edit Child2, Child4 would be changed and vice versa.

    I guess I could connect the items with a signal from Child2 to change Child4 and a signal from Child4 to change Child2, but I would like to have the two items to actually be one object.
    Last edited by di_zou; 16th November 2009 at 17:02. Reason: spelling error

Similar Threads

  1. Multiple Lines per item in a QListWidget/QListView
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2008, 21:44
  2. View, Scene, Item and thread??
    By dungsivn in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 19:21
  3. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37

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.