Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess buffers question
Qt 6.12 LTS is out! See what's new in the release blog

QProcess buffers question

Scheduled Pinned Locked Moved Solved General and Desktop
qprocess
3 Posts 2 Posters 1.6k Views 2 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.
  • J Offline
    J Offline
    Jedd
    wrote on last edited by
    #1

    Why is readAllStandardError() returning empty when called the second time? Can it only be read once?

    stderrtxt1=run_command.readAllStandardError(); // has error content

    stderrtxt2=run_command.readAllStandardError(); // returns empty

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! readAllStandardError reads all available data from the standard error channel. After that the input is empty until new data is written to the channel.

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Jedd
        wrote on last edited by
        #3

        Thanks! Marking solved.

        1 Reply Last reply
        0

        • Login

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