Results 1 to 9 of 9

Thread: Cannot read QProcess output for some applications

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Cannot read QProcess output for some applications

    Yes, it does..

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot read QProcess output for some applications

    One thing I could imagine is that the logging framework detects if there is a controlling terminal and output to it if there is.
    And if there is not it logs to some system logging factility

    Cheers,
    _

  3. #3
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Cannot read QProcess output for some applications

    Not a solution ;but for now i think i need to use "stdout" ...

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot read QProcess output for some applications

    Yes, using the correct streams explicitly is a better solution anyway.
    More control of which stream something is written to and more control on how the data is formatted, etc.

    Cheers,
    _

  5. The following user says thank you to anda_skoa for this useful post:

    yagabey (6th July 2015)

Similar Threads

  1. why can't QProcess read all output?
    By Raul in forum Qt Programming
    Replies: 32
    Last Post: 15th June 2013, 12:17
  2. Read output of QProcess in runtime
    By silur in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2012, 19:16
  3. Read most recent output from QProcess's stdout
    By Lawand in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2010, 22:29
  4. Replies: 6
    Last Post: 26th January 2010, 08:56
  5. Help on QProcess - Output Read
    By augusbas in forum Qt Programming
    Replies: 5
    Last Post: 24th September 2009, 11:54

Tags for this Thread

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.