Results 1 to 5 of 5

Thread: When does Mimedata() get called?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: When does Mimedata() get called?

    Quote Originally Posted by TEAmerc View Post
    So far I've found that the MimeType() function gets called when a drag begins using std::cerr, but I haven't been able to find when MimeData() gets called to add the text data so that it gets received on drops.
    I am not sure I understand the question or what kind of issue you run into.
    The mimeData() is called when the drag starts and the resulting QMimeData is stored in the QDrag object that handles the Drag&Drop.

    The Drop location simply gets that QMimeData instance from the drop event.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    TEAmerc (13th October 2015)

Similar Threads

  1. Replies: 3
    Last Post: 6th March 2014, 18:54
  2. Destructor not called
    By satoshi in forum General Programming
    Replies: 2
    Last Post: 23rd April 2010, 13:55
  3. Why Qt is called Qt?
    By nifei in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2009, 07:40
  4. Itemview D&D mimeData
    By chocolate in forum Qt Programming
    Replies: 6
    Last Post: 19th March 2009, 15:44
  5. Drag and Drop MimeData
    By Zephro in forum Qt Programming
    Replies: 10
    Last Post: 16th May 2006, 19:20

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.