Results 1 to 11 of 11

Thread: Drag and Drop MimeData

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Drag and Drop MimeData

    Quote Originally Posted by kiker99
    yeah, but how do i have to implement that operator? Do I need to build something similar to a string out of the objects attributes? And how do I get the real Object back at the point where the user ended the drag'n'drop operation?
    It doesn't matter how you implement it. It only matters that it has to be converted to a stream of bytes and then the conversion has to be reversed (by implementing deserialisation from the data stream).

    For example you could store an xml representation of your object in the stream (although it would be an overkill).

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

    kiker99 (16th May 2006)

  3. #2
    Join Date
    Jan 2006
    Location
    Frankfurt, Germany
    Posts
    34
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Drag and Drop MimeData

    ok, thanks a lot

  4. #3
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Drag and Drop MimeData

    so you passed a string containing the text representation of the int value of the pointer into setData? hilarious
    Software Engineer



Similar Threads

  1. Replies: 1
    Last Post: 8th January 2009, 17:40
  2. drag and drop QToolButton in QToolBar
    By NBilal in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:11
  3. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 16:56
  4. Drag and Drop QTableWidget and QTableView
    By scorpion11 in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 09:33
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16:41

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.