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 save Qprocess values in a string or textfile
Forum Updated to NodeBB v4.3 + New Features

how to save Qprocess values in a string or textfile

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.2k Views
  • 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.
  • K Offline
    K Offline
    karti gesar
    wrote on last edited by
    #1

    Hi all....suppose i running process.start("ping www.google.com");
    how to store that values into the string

    jsulmJ 1 Reply Last reply
    0
    • K karti gesar

      Hi all....suppose i running process.start("ping www.google.com");
      how to store that values into the string

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

      @karti-gesar Which values?
      Do you mean what the process writes to standard output and error output?
      If so then please read the documentation:
      "Communicating via Channels" in http://doc.qt.io/qt-5/qprocess.html

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

      1 Reply Last reply
      1
      • K Offline
        K Offline
        karti gesar
        wrote on last edited by
        #3

        suppose www.google.com will return ipaddress ...so that values to be store in a string

        jsulmJ 1 Reply Last reply
        0
        • K karti gesar

          suppose www.google.com will return ipaddress ...so that values to be store in a string

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

          @karti-gesar said in how to save Qprocess values in a string or textfile:

          suppose www.google.com will return ipaddress ...so that values to be store in a string

          It looks like you want to read what the ping command prints out (your question is really unclear). For that please read the documentation, I provided a link before. Especially:
          http://doc.qt.io/qt-5/qprocess.html#readAllStandardOutput
          http://doc.qt.io/qt-5/qprocess.html#readyReadStandardOutput

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

          1 Reply Last reply
          1
          • K Offline
            K Offline
            karti gesar
            wrote on last edited by
            #5

            k i will try

            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