Results 1 to 19 of 19

Thread: xstrm.read();

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default xstrm.read();

    Hi, Do anyone know why this instruction gets an runtime error and a console error like as
    QFile::getch: Read operation not permitted ? Thanks
    Qt Code:
    1. QString plainText = xstrm.read();
    To copy to clipboard, switch view to plain text mode 

    I need to do this below but I've got some problems....
    Qt Code:
    1. QString plainText = xstrm.readline();
    2. //cout << "plainText " << plainText << endl;
    3. QDomText t1 = doc.createTextNode(plainText);
    4. tag1.appendChild(t1);
    To copy to clipboard, switch view to plain text mode 
    If I use .readline() seem works but the text inside TAG (in the file) appear null (string null). Why? However I need to read entire stream and not a line...
    Last edited by mickey; 2nd July 2006 at 18:59.
    Regards

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.