Results 1 to 2 of 2

Thread: dropEvent() is never called

  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Question dropEvent() is never called

    Hi,

    I have a custom subclass of a QLineEdit which is supposed to be able to receive drops from a TableView, that has DnD working on the model level. Dragging from TableView to another TableView works fine. However when I try to drag an item from the TableView to my QLineEdit subclass I get dragEnterEvent() and dragMoveEvent() called (I do event->acceptProposedAction() there), but dropEvent() is never called. Any clues? I’m using Qt-4.6.3 compiled in debug mode on a MacOS 10.6.

    cheers

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dropEvent() is never called

    Please show your implementations of dragEnterEvent() and dragMoveEvent().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. about dropEvent in mac
    By yxtx1984 in forum Newbie
    Replies: 1
    Last Post: 19th March 2010, 07:17
  2. QGraphicsScene and dropEvent
    By prof.ebral in forum Newbie
    Replies: 14
    Last Post: 6th March 2010, 10:16
  3. dropEvent doesn't happen without mousemove
    By Dimon in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 17:49
  4. Advice catching dropEvent
    By DirtyBrush in forum Qt Programming
    Replies: 5
    Last Post: 15th July 2009, 17:43
  5. Drag and Drop, dropEvent not being called?
    By steg90 in forum Qt Programming
    Replies: 36
    Last Post: 22nd May 2007, 08:03

Tags for this Thread

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.