Results 1 to 2 of 2

Thread: dropEvent() is never called

  1. #1
    Join Date
    May 2010
    Qt products
    MacOS X

    Question dropEvent() is never called


    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.


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

    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


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.