Results 1 to 2 of 2

Thread: Can't get Drag and Drop capability work.

  1. #1
    Join Date
    Feb 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Can't get Drag and Drop capability work.

    Hi,

    i am try to implement drag and drop capability in little program ,,,
    the problem is when i set the main window to accept drops, it is not working and when i try to drop a file i get an error cursor.
    It's weird because I did it before and it worked ...
    I try to compare the projects and I do not see much difference...


    This may sound familiar to anyone???

    Does anybody have an idea that can help?
    Thank you very much!

  2. #2
    Join Date
    Feb 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Can't get Drag and Drop capability work.

    I got it.
    I had to implement the function:
    dragEnterEvent(QDragEnterEvent *event)
    With:
    event->acceptProposedAction();

    Otherwise it does not allow Drops.



Similar Threads

  1. Drag and Drop
    By starcontrol in forum Qt Programming
    Replies: 4
    Last Post: 26th September 2008, 20:12
  2. Drag and Drop
    By allensr in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2006, 20:50
  3. Drag and Drop bug?
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 4th September 2006, 15:56
  4. drag and drop
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2006, 11:46
  5. Drag and Drop (drop example)
    By din9 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 18:03

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.