Results 1 to 2 of 2

Thread: send structure data through drag QMimeData

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default send structure data through drag QMimeData

    Hi friends,

    I have to perform drag and drop between different views (different scene also) , so i have to copy the content of one scene to other . the copy item will have lots of details ( about a six memeber in a structure) .
    i can pass data as QByteArray, pixmap and html but is it possible to sent it as a structure itself .?

    please help me ,
    Thanks in advance
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: send structure data through drag QMimeData

    As long as you work within a single app, you can even pass a pointer to an object. However it is wider to provide proper serialization of your data using QDataStream.
    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. how to send structure to tcp spcket
    By gauravg in forum Qt Programming
    Replies: 4
    Last Post: 12th April 2012, 18:34
  2. Replies: 1
    Last Post: 13th April 2011, 11:24
  3. Replies: 0
    Last Post: 15th July 2010, 23:41
  4. Drag&Drop - Pointer into QMimeData?
    By droetker in forum Newbie
    Replies: 2
    Last Post: 11th October 2009, 14:14
  5. Preserving structure in QTreeView drag and drop
    By Tito Serenti in forum Qt Programming
    Replies: 1
    Last Post: 14th February 2009, 03:39

Tags for this Thread

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.