Results 1 to 6 of 6

Thread: Error Trying to take out a qlist from a binary file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    131
    Thanks
    17
    Thanked 4 Times in 2 Posts

    Default Error Trying to take out a qlist from a binary file

    Qt Code:
    1. QDataStream& operator>>(QDataStream &out, car *&list)
    2. {
    3. QString w,x,y,z;
    4. out>>w;
    5. out>>x;
    6. out>>y;
    7. out>>z;
    8. out>>list->register; //<--- the line who dont run according to the debugger but i dont know why, this is my qlist
    9. list->plate=w;
    10. list->brand=x;
    11. list->mileage=y.toDouble();
    12. list->cylinder_capacity=z.toDouble();
    13. return out;
    14. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by bmn; 17th September 2014 at 04:13.

Similar Threads

  1. Binary QFile error
    By Affenbrotbaum in forum Newbie
    Replies: 3
    Last Post: 29th January 2010, 02:13
  2. How to write a QList into a binary file?
    By Lawand in forum Qt Programming
    Replies: 23
    Last Post: 15th June 2009, 10:04
  3. Read binary from file
    By weldpua2008 in forum Newbie
    Replies: 2
    Last Post: 3rd April 2009, 23:50
  4. cannot execute binary file
    By mgturner in forum Installation and Deployment
    Replies: 1
    Last Post: 16th March 2009, 17:04
  5. How to Print a doc file (or binary file) to printer
    By rmagro in forum Qt Programming
    Replies: 15
    Last Post: 5th September 2008, 15:46

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.