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. Catching input stream from child process
Qt 6.11 is out! See what's new in the release blog

Catching input stream from child process

Scheduled Pinned Locked Moved Unsolved General and Desktop
qprocess
3 Posts 3 Posters 1.0k 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.
  • S Offline
    S Offline
    s.gatich
    wrote on last edited by
    #1

    Hi everybody.
    I'm interesting in two following questions:

    1. Can I retrieve input from child process that was opened with QProcess? I tried QProcess::waitForBytesWritten() and QProcess::readAll(), but it didn't work.
    2. Can I intercept events of child process? I'm interested in keyboard events.

    For example, I open "notepad.exe". My goal is to intercept user input and modify it. Is there any solution?

    Thanks for your time.
    Sergey.

    jsulmJ 1 Reply Last reply
    0
    • S s.gatich

      Hi everybody.
      I'm interesting in two following questions:

      1. Can I retrieve input from child process that was opened with QProcess? I tried QProcess::waitForBytesWritten() and QProcess::readAll(), but it didn't work.
      2. Can I intercept events of child process? I'm interested in keyboard events.

      For example, I open "notepad.exe". My goal is to intercept user input and modify it. Is there any solution?

      Thanks for your time.
      Sergey.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
        wrote on last edited by
        #3

        We can do something. You need to use event filters along with process communication. Can you paste the which you have tried ? That will help us quickly get you the solution.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        https://www.pthinks.com

        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