Results 1 to 9 of 9

Thread: Where's my wrong?(Related to QFile & QTextStream)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Where's my wrong?(Related to QFile & QTextStream)

    Quote Originally Posted by wysota View Post
    Try opening without the append mode.
    Yes it opend, searched and writed successfully. I've thought that if I need to append it end of the file, then I must use QIODevice::Append flag..

    Thank you very much wysota and guilugi for your answers..

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 21 Times in 21 Posts

    Default Re: Where's my wrong?(Related to QFile & QTextStream)

    Well, I missed the append flag...this flag set the textstream at the end of the file...so when you read, there's nothing more to read

    Fine if it works

  3. #3
    Join Date
    Mar 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Where's my wrong?(Related to QFile & QTextStream)

    Oh I get the point

    Thanks again

Similar Threads

  1. Replies: 7
    Last Post: 17th July 2009, 09:40
  2. What's wrong with my actions???
    By fullmetalcoder in forum Qt Programming
    Replies: 6
    Last Post: 4th March 2007, 18:49
  3. Qt renders wrong font
    By durbrak in forum Qt Programming
    Replies: 8
    Last Post: 2nd November 2006, 14:36
  4. QListWidget...what's wrong
    By nupul in forum Newbie
    Replies: 16
    Last Post: 4th April 2006, 12:17
  5. Help please - what am I doing wrong?
    By Jimmy2775 in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 22:06

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.