Hey there,
I keep having the same issue with QProcess:
My run function:
void qkReceptor::run()
{
// A timer to avoid high CPU charge
connect(&timer, SIGNAL(timeout()), this, SLOT(onCheckStdin()), Qt::DirectConnection);
connect(this,
SIGNAL(newLine
(QString)),
this,
SLOT(onNewLine
(QString)), Qt
::BlockingQueuedConnection);
timer.start(100);
}
void qkReceptor::run()
{
// A timer to avoid high CPU charge
QTimer timer;
connect(&timer, SIGNAL(timeout()), this, SLOT(onCheckStdin()), Qt::DirectConnection);
connect(this, SIGNAL(newLine(QString)), this, SLOT(onNewLine(QString)), Qt::BlockingQueuedConnection);
timer.start(100);
QThread::exec();
}
To copy to clipboard, switch view to plain text mode
My stop function:
void qkReceptor::stop()
{
if (this->isRunning())
{
this->quit();
this->wait(); // This never return
}
}
void qkReceptor::stop()
{
if (this->isRunning())
{
this->quit();
this->wait(); // This never return
}
}
To copy to clipboard, switch view to plain text mode
My stop function doesn't seem to work on MacOSX, although it works on win32.
Anyone ?
Bookmarks