Results 1 to 2 of 2

Thread: Stop / interrupt drag and drop operation

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    52
    Thanked 42 Times in 42 Posts

    Default Stop / interrupt drag and drop operation

    Hello,
    I have 2 QListQWidget's. One accepts only drops other one accepts also drag.
    Everything works fine except, that I can't stop moving data from one list widget into another.

    In drop event I reject drop event but data is inserted into other list widget.

    So question, how to stop / terminate drag and drop operation that is currently in progress? (or what code is behind pressing ESC in dnd progress?).

    Thanks for reply - sorry for messy description - 12h coding ;/.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    52
    Thanked 42 Times in 42 Posts

    Default Re: Stop / interrupt drag and drop operation

    I solved this problem with setting my custom mime type. It's not exactly what I was looking for but ..
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

Similar Threads

  1. Control Drag Operation
    By sajis997 in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2012, 12:10
  2. QTreeView find out when the drag operation ends
    By mentalmushroom in forum Qt Programming
    Replies: 2
    Last Post: 4th October 2011, 07:37
  3. How to stop network operation?
    By newtolinux in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2011, 13:35
  4. Replies: 2
    Last Post: 13th October 2010, 21:51
  5. Replies: 0
    Last Post: 4th May 2010, 10:24

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
  •  
Qt is a trademark of The Qt Company.