Results 1 to 3 of 3

Thread: Get target Object for drag and drop in QTreeWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2017
    Qt products
    MacOS X Unix/X11

    Default Get target Object for drag and drop in QTreeWidget

    I am currently working on dragging a treeWidgetItem to two different treeWidgets. Is there any way to let me get target treeWidget in dragMoveEvent(QDragMoveEvent *event) or other function when I am dragging a treeWidgetItem so that I can some animation effect to the target TreeWidget?

    Also, can I get the itemIndex for the position of my mouse when I am dragging the item to another TreeWidget? Thank you very much.
    Last edited by ng2b30; 14th June 2019 at 12:48.

Similar Threads

  1. Drag & drop in QTreeWidget
    By Maluna34 in forum Qt Programming
    Replies: 0
    Last Post: 27th June 2017, 11:09
  2. Replies: 3
    Last Post: 8th October 2010, 20:01
  3. QTreeWidget Drag and drop
    By zell99 in forum Newbie
    Replies: 15
    Last Post: 7th August 2010, 14:28
  4. Replies: 2
    Last Post: 14th May 2010, 15:12
  5. QtreeWidget drag and drop
    By addu in forum Qt Programming
    Replies: 4
    Last Post: 30th June 2009, 10:41

Tags for this Thread


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.