Results 1 to 13 of 13

Thread: QTList Custom class Serlization

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QTList Custom class Serlization

    Congratulations. Would you like us to guess what you have actually done? Clearly it wasn't what wysota and I suggested because I know that works.

    Edit... since you added to your prior post:

    In your header you should have a prototype for the operator>> and operator<< free functions.
    In your cpp you should have the implementation. Just like you do for the classes.

    You are probably streaming a series of pointer values to a store, not the content of the pointed-to objects. This does not bode well for recovering the objects. What do your actual streaming operators look like?
    Last edited by ChrisW67; 20th January 2012 at 07:01.

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

    saravanadel (20th January 2012)

Similar Threads

  1. Replies: 7
    Last Post: 18th August 2011, 15:43
  2. Using custom class as a key (QSet)
    By daujeroti in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2011, 21:39
  3. qhash with custom class
    By dognzhe in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2009, 07:30
  4. custom class for tslib
    By nrabara in forum Newbie
    Replies: 1
    Last Post: 28th April 2009, 14:15
  5. Custom Model Class
    By mattjgalloway in forum Qt Programming
    Replies: 12
    Last Post: 4th June 2007, 18:30

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