Results 1 to 3 of 3

Thread: How to identify drag hovered items in itemviews?

  1. #1
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question How to identify drag hovered items in itemviews?

    I've built a treeview and got the drag&drop function enabled.
    The delegate was reimplemented for drawing the treeview.
    Then problem comes: how to identify drag hovered item in the treeview and show it in special color by the delegate? Or there are more perfect solutions?
    Thank you for answering my question.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to identify drag hovered items in itemviews?

    May be you have to look into QAbstractItemView::dragEnterEvent

  3. #3
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to identify drag hovered items in itemviews?

    QAbstractitemView::dragEnterEvent can only get the event pos,but i want to draw something special for the hovered item.

Similar Threads

  1. Confusion over columnCount() in itemviews
    By edice in forum Qt Programming
    Replies: 5
    Last Post: 24th September 2009, 15:23
  2. Set a ToolButton Hovered
    By vajindarladdad in forum Newbie
    Replies: 7
    Last Post: 1st September 2009, 12:33
  3. Drag and Drop in QGraphicsScene misses items
    By enno in forum Qt Programming
    Replies: 2
    Last Post: 30th August 2009, 15:17
  4. Catch drag and drop items
    By nina1983 in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2008, 17:24
  5. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 14: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.