how to save Qprocess values in a string or textfile
-
Hi all....suppose i running process.start("ping www.google.com");
how to store that values into the string -
@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 -
suppose www.google.com will return ipaddress ...so that values to be store in a string
-
@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 -
k i will try