Results 1 to 2 of 2

Thread: problem in QProcess() readyReadStandardOutput()

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problem in QProcess() readyReadStandardOutput()

    hi friends,

    i am using Qt4
    ln #QProcess() i am running glxgears and i want the output to be printed in the textEdit
    glxgrears print output every 5sec ... so i use readyReadStandardOutput() signal to slot readOut()

    but the problem is after filling the entire buffer QProcess() calls the readOut() slot only after the buffer fills otherwise it takes five minutes and printing it in a heap ..

    in Q3Process() there is canReadLineStdout() call but in qt4 which one i can use ...? but more it is emitting readyReadStandardOutput() only after the buffer filled ... so canReadLineStdout()also use less ..
    what can i do now ..... please help .....

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem in QProcess() readyReadStandardOutput()

    can i shifted to Q3Process() or is there any other way .... is it possible to flush the buffer and can i try that way ...? .. please help .. it taking 5 minutes to print the update value of a sysstem call glxgears .. only after the current buffer fills ... is it possible to use QIODevice properties some where ..?

Similar Threads

  1. QProcess and Qtextedit problem
    By skumar434 in forum Qt Programming
    Replies: 1
    Last Post: 17th March 2009, 18:24
  2. QProcess problem
    By Mystical Groovy in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2008, 20:07
  3. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  4. Quoting problem with QProcess
    By the_bis in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2006, 11:24
  5. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 13:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.