Results 1 to 4 of 4

Thread: QProcess::setReadChannelMode() unknown ?

  1. #1
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question QProcess::setReadChannelMode() unknown ?

    Hi, I currently work on a project in which I need to run an external application. this application is in command lines, so I'd like to get at the same time the standard output and the error output. To do this, the QProcess::setProcessChannelMode () method seemed the best to me, as it allows to "mix" both streams in one.

    My issue is that the compilator doesn't recognize it :

    main.cpp:50: error: 'class QProcess' has no member named 'setProcessChannelMode'

    In case you need it, my config is : QT 4 Windows, Open Source Edition, compilator g++ 3.4.2

    Could anybody help me ? Thanks in advance

    PS : If you have any other idea to get both streams and display them chonologicaly, it is also good to me.

    PPS : Please excuse any possible mistake in my language, English is not my daily language

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProcess::setReadChannelMode() unknown ?

    It should be setReadChannelMode() not setProcessChannelMode().

  3. The following user says thank you to jacek for this useful post:

    gwendal (16th August 2006)

  4. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProcess::setReadChannelMode() unknown ?

    J-P Nurmi

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

    gwendal (16th August 2006)

  6. #4
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QProcess::setReadChannelMode() unknown ?

    Oups, so silly ! I feel so ashamed not to have see that myself....

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.