Results 1 to 6 of 6

Thread: QTreeWidget drag and drop

  1. #1
    Join Date
    Nov 2013
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeWidget drag and drop

    Hello, i have 2 qtreewidgets on my form.
    I need to make d&d from first to second qtreewidget

    for first i set dragDropMode -> dragOnly
    for second i set dragDropMode -> dropOnly and defaultDropActrion -> CopyAction

    but, i have 1 problem.
    only 1 qtreewidgetitem is copied, without hierarchy (w/0 child items)

    How can i fix this?

  2. #2
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: QTreeWidget drag and drop

    Can you show the code you are working with now, stripped down to the minimal starting kernel?

  3. #3
    Join Date
    Nov 2013
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget drag and drop

    this?
    DD2.ZIP

    I can't copy branch "4" with hierarchy

  4. #4
    Join Date
    Nov 2013
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget drag and drop

    up

    nobody can't help me?

  5. #5
    Join Date
    Nov 2013
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget drag and drop

    up
    (10 symbols)

  6. #6
    Join Date
    Nov 2013
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget drag and drop

    up
    (10 symbols)

Similar Threads

  1. QTreeWidget & drag&drop
    By pfid in forum Qt Programming
    Replies: 0
    Last Post: 9th November 2010, 11:26
  2. QTreeWidget Drag and drop
    By zell99 in forum Newbie
    Replies: 15
    Last Post: 7th August 2010, 14:28
  3. QTreeWidget: Drag and Drop
    By laugusti in forum Qt Programming
    Replies: 0
    Last Post: 11th June 2010, 16:37
  4. QTreeWidget drag/drop
    By s_a_white in forum Newbie
    Replies: 1
    Last Post: 10th February 2007, 23:04
  5. Drag and drop with QTreeWidget
    By JSPoly in forum Qt Programming
    Replies: 5
    Last Post: 6th February 2007, 23:31

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.