purpose of parameter value of -1 ?
-
Not knowing what type of object
process
is, it's impossible to say, with any accuracy. However, since it looks like it might be a QProcess, so once again, this isn't a C++ question, but a QT question. Maybe if you took the time to look at the documentation when you run into an issue, you might be able to resolve your questions in a timely manner ... [QProcess Class | Qt Core 6.6.1](https://doc.qt.io/qt-6/qprocess.html#waitForStarted:~:text=interface to freeze.-,If msecs is -1%2C this function will not time out.,-Note%3A On)"A little song, a little dance, a little seltzer down your pants" Chuckles the clown
-
Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what
QProcess
object decided to do in thewaitForStarted
function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:Quote:
If msecs is -1, this function will not time out.
3. Why you keep asking in a slightly annoying tone? Makes you feel better?
Mircea
-
Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what
QProcess
object decided to do in thewaitForStarted
function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:Quote:
If msecs is -1, this function will not time out.
3. Why you keep asking in a slightly annoying tone? Makes you feel better?
Mircea
-
Me, I'm wondering a few things: 1. What makes you believe this is a C++ question? The answer obviously depends on what
QProcess
object decided to do in thewaitForStarted
function. 2. Why don't you Google before asking here? I tried "waitforstarted qt" and the first hit points me to QProcess Class | Qt Core 6.6.1[^] and I read there:Quote:
If msecs is -1, this function will not time out.
3. Why you keep asking in a slightly annoying tone? Makes you feel better?
Mircea
Mircea Neacsu wrote:
Why you keep asking in a slightly annoying tone? Makes you feel better?
He has always* behaved in this manner, even once complaining to Chris when he was asked to put his code between <pre> tags. He was thrown off the site last year for abuse, but has managed to more or less behave up to now. Quite why he continues with this code, given his level of understanding, remains a mystery. *has had different accounts, or changed the name more than once.
-
Reading the
QT
documentation could save you some pain. Just saying."In testa che avete, Signor di Ceprano?" -- Rigoletto