Results 1 to 9 of 9

Thread: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

    Quote Originally Posted by wysota View Post
    Maybe you are reading from the wrong channel? What is the current channel of the process?
    is the default channel of the process, not changed, the code is exactly the one shown above. What I find strange is that it works on Linux distributions with gnome interface but not working on distributions with kde interface.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

    And what happens if you run xprop directly from the console? Do you get the output desired on both kde and gnome?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

    Yes, it works with both gnome and kde, and when setting the QProcess channel for ForwardedChannels, the console output occurs in real time in both kde and gnome.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

    Are you sure the output goes to stdout and not stderr?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: QProcess readyRead() and readReadStandardOutput signals not triggered in kde

    I tried changing the channel mode to MergedChannels and not solved.

Similar Threads

  1. QUdpSocket readyRead() signal not triggered
    By deionut in forum Newbie
    Replies: 2
    Last Post: 26th October 2010, 18:19
  2. Replies: 3
    Last Post: 28th September 2010, 10:48
  3. QThread and signals (linux/UNIX signals not Qt Signals)
    By Micawber in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 22:18
  4. Replies: 2
    Last Post: 27th February 2007, 21:06
  5. QHttp and readyRead signals emit sequence
    By balitong in forum Qt Programming
    Replies: 4
    Last Post: 19th June 2006, 05:22

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.