Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to redirect output of stdout to GUI QTextEdit Shell from one process to another process
Forum Updated to NodeBB v4.3 + New Features

How to redirect output of stdout to GUI QTextEdit Shell from one process to another process

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by Qt Enthusiast
    #1

    Hi I have console

    and I have anothet process process 1. From process 0 where I have GUI in QTextEdit , I was to redirect the output which i printed on console to QtextEdit in process 0

    I went through http://doc.qt.io/qt-5/qprocess.html but did not get specific example ot output redirection from Stdout to GUI shell

    jsulmJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Hi I have console

      and I have anothet process process 1. From process 0 where I have GUI in QTextEdit , I was to redirect the output which i printed on console to QtextEdit in process 0

      I went through http://doc.qt.io/qt-5/qprocess.html but did not get specific example ot output redirection from Stdout to GUI shell

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by VRonin
      #2

      @Qt-Enthusiast What about http://doc.qt.io/qt-5/qprocess.html#readyReadStandardError
      http://doc.qt.io/qt-5/qprocess.html#readyReadStandardOutput
      http://doc.qt.io/qt-5/qprocess.html#readAllStandardError
      http://doc.qt.io/qt-5/qprocess.html#readAllStandardOutput
      ?
      Isn't this what you need?
      It is described right there in Communicating via Channels.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved