Results 1 to 2 of 2

Thread: avaiability of data from QDataStream

  1. #1
    Join Date
    Apr 2006
    Posts
    122
    Thanks
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default avaiability of data from QDataStream

    Is data wittten to QDataStream is single time readable only?
    I am writing data to a socket where it is reflecting correctly but when i read it in next instuction sth else id read.
    Any guidance is always welcome?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: avaiability of data from QDataStream

    The stream in the name indicates that that is the case, you pick a part of the stream each time. I'd recommend that you build a class around a stream that holds the last character. Through that class you can has a pop() (streaming) and a top() (leaves the stream alone) method.

Similar Threads

  1. Writing Data Aware Forms in QT4.
    By gsQT4 in forum Qt Programming
    Replies: 5
    Last Post: 21st March 2007, 10:35
  2. QFtp->List() does not recieve any data
    By nopalot in forum Qt Programming
    Replies: 5
    Last Post: 17th May 2006, 20:42
  3. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 16:17
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Replies: 1
    Last Post: 1st March 2006, 11:43

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.