Results 1 to 19 of 19

Thread: xstrm.read();

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: xstrm.read();

    I guess that QTextStream just reads the file from the current position, try adding "f.reset()" before xstrm.readLine().

  2. #2
    Join Date
    Jan 2006
    Posts
    976
    Qt products
    Qt3
    Platforms
    Windows
    Thanks
    53

    Default Re: xstrm.read();

    ok now it seems work with read() properly. but a strange thing happen in the file after write; the second part of file appear in a wrong way..
    Qt Code:
    1. <Light0 pos="4 1 4 1" //wrong
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. <Light0 pos="4 1 4 1" //right
    To copy to clipboard, switch view to plain text mode 
    Why this? thanks
    Regards

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: xstrm.read();

    Quote Originally Posted by mickey
    Why this? thanks
    Maybe because you create a text node (i.e. text that is between tags)?
    Could you describe what are you trying to achieve?

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.