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. [Solved] Buffer size of QProcess
Forum Updated to NodeBB v4.3 + New Features

[Solved] Buffer size of QProcess

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • M Offline
    M Offline
    moravas
    wrote on last edited by moravas
    #1

    Hi Folks,

    I have a console application on Windows 7 and I start a child process by QProcess. As I consider, the standard output of the child process is buffered so I can read some output before I connect to the readyRead signal of the process (Please accept that connecting to the signal after starting the process is the right way in this program due to the requirements).
    The question is: how can I determine the size of this buffer used for standard output of my QProcess?

    Regards,
    Norbert

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      HI
      You could have a look at the source
      "C:\Qt\Qt5.5.0\5.5\Src\qtbase\src\corelib\io\qprocess.cpp"
      Seems to use QByteArray and is a child of QIODevice.
      My guess would be "dynamic" and depending on platform.

      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 Extensions
      • Unsolved