Results 1 to 2 of 2

Thread: QTreeWidget insert item indicator when reimplementing drag and drop

  1. #1
    Join Date
    Oct 2011
    Posts
    27
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeWidget insert item indicator when reimplementing drag and drop

    Hi all,

    I've reimplemented the drag/drop behavior of my QTreeWidget (mousePressEvent, mouseMoveEvent, dragEnterEvent, ...) and it works quite as I wanted but I don't know how to show an insert indicator.

    This is what I want : When using the built in drag and drop behavior of the QTreeWidget in the mode QAbstractItemView::InternalMove, when an item will be inserted between two others, a wonderful line appears between them indicating where the dragged item will be dropped.

    How can I do that ?

    Thanks in advance !

  2. #2
    Join Date
    Apr 2013
    Posts
    9
    Qt products
    Qt4 Qt5

    Default Re: QTreeWidget insert item indicator when reimplementing drag and drop

    Hii,

    I have two classes inherited from QTreeWidget. I want to drag and drop an item from first treewidget to next treewidget. How I will implement it? Any sample working code, please upload


    Sree

Similar Threads

  1. Replies: 2
    Last Post: 13th October 2010, 21:51
  2. Replies: 0
    Last Post: 4th May 2010, 10:24
  3. Replies: 1
    Last Post: 18th November 2008, 06:57
  4. Drag and Drop item inside QTreeWidget
    By nina1983 in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2008, 11:43
  5. Drag an item from QTreeWidget and drop in TableView
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 18th May 2007, 11:42

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.