Results 1 to 6 of 6

Thread: Problem uisng QTextStream

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2015
    Posts
    16
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Question Re: Problem uisng QTextStream

    Quote Originally Posted by ChrisW67 View Post
    The signed 32 bit integer -1073741510 is 3221225786 when treated as an unsigned 32-bit integer, and 0xC000013A in hex.
    That code means, STATUS_CONTROL_C_EXIT {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C.
    https://msdn.microsoft.com/en-us/library/cc704588.aspx

    The likely reason you get no output is because the QTextStream is buffered and you have done nothing to trigger an immediate flush.
    See QTextStream::flush() or the flush stream manipulator.
    I don't want to use QTextStream::flush() or QTextStream::endl() , i want to get the input at the same line with the prompt ...
    What should i do then ?

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Problem uisng QTextStream

    Using QTextStream::flush() won't cause the output position to move to a new line, but it will force the output to be displayed on stdout, which I believe is what you want to occur.
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

Similar Threads

  1. QTextStream Problem
    By lahmitia in forum Newbie
    Replies: 3
    Last Post: 8th March 2011, 20:16
  2. QTextStream readLine() problem
    By walito in forum Newbie
    Replies: 11
    Last Post: 10th January 2011, 14:55
  3. QTextStream problem
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2007, 09:50
  4. how to access usb device uisng qt
    By amit_pansuria in forum General Programming
    Replies: 4
    Last Post: 11th April 2007, 12:11
  5. Problem with QTextStream
    By eter in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 15:54

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.