Results 1 to 12 of 12

Thread: QTextStream readLine() problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: QTextStream readLine() problem

    Ahh... this all thing is in your main...
    I think that working with QIODevice needs a running event loop (but I am not sure).
    Put this in to a class, and run this code after the event loop is running, that will be a good idea even if its not the problem.
    Maybe some one else can confirm if this is the problem though.

    EDIT:
    [re-edit] I take back what I said here.
    Last edited by high_flyer; 6th January 2011 at 15:00.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Problem quitting QThread that uses readLine
    By DiamonDogX in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2010, 16:43
  2. Qtextstream::readline()
    By dawn_to_dusk_ in forum Qt Programming
    Replies: 4
    Last Post: 3rd August 2008, 17:58
  3. readLine problem
    By gQt in forum Qt Programming
    Replies: 10
    Last Post: 29th February 2008, 09:35
  4. QTextStream, input and readLine()
    By kramed in forum Newbie
    Replies: 6
    Last Post: 1st September 2007, 23:54
  5. QTextStream problem
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 19th June 2007, 09:50

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.