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 can I get the outputs data after I called QProcess::execute() ?
Forum Updated to NodeBB v4.3 + New Features

How can I get the outputs data after I called QProcess::execute() ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 795 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.
  • L Offline
    L Offline
    liye0005
    wrote on last edited by
    #1

    Hello ,

    I launch a command line program using QProcess, and I'd like to get all the console output from it.

    The problem is:
    if I launch it using QProcess::execute() all console outputs are sent to Qt Creator console output and I cannot get them (or can I ?)

    I have used readAllStandardError () and readAllStandardOutput (), but I still get no data.

    What can I do ?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poorBob
      wrote on last edited by
      #2

      "Google's answer: ":http://stackoverflow.com/questions/3852587/how-to-get-stdout-from-a-qprocess

      I hope it will help You :)

      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