Results 1 to 2 of 2

Thread: qt and serialize

  1. #1
    Join Date
    Nov 2012
    Posts
    38
    Thanks
    3

    Default qt and serialize

    hello.
    I wish use the serializing framework of qt.
    I have two question:
    1)how i can serialize and deserialize pointers
    2)is possible to serialize a custom class?what function i must implement for serialize it's base data classes?

    thanks.

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

    Default Re: qt and serialize

    Quote Originally Posted by giugio View Post
    1)how i can serialize and deserialize pointers
    It doesn't make any sense to serialize pointers. You need to serialize objects behind the pointers.

    2)is possible to serialize a custom class?
    Yes. Reimplement redirection operators as described in QDataStream docs.

    what function i must implement for serialize it's base data classes?
    I have no idea what you mean by "base data classes".
    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. Is it possible to serialize QVariant into a QString?
    By MachinTrucChose in forum Qt Programming
    Replies: 3
    Last Post: 27th October 2012, 22:08
  2. Serialize QListwidget
    By john_god in forum Qt Programming
    Replies: 0
    Last Post: 22nd November 2009, 01:10
  3. How could I serialize my classes?
    By ricardo in forum Qt Programming
    Replies: 12
    Last Post: 29th June 2009, 16:05
  4. Serialize a C++ string in QDatastream
    By Denarius in forum Qt Programming
    Replies: 2
    Last Post: 1st April 2009, 13:40
  5. Serialize myClass
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 23rd October 2007, 10:27

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.