I think not because if I connect readyReadStandardError or readyReadStandardOutput to a slot, this slot it's never called. If I use connect I don't delete the process by delete. Thus not problem of waiting. But never works!
connect(testCtags, SIGNAL(readyReadStandardError()), this, SLOT(slotLoadCtags()) );
connect(testCtags, SIGNAL(readyReadStandardOutput()), this, SLOT(slotLoadCtags()) );
testCtags
->start
("ctags",
QStringList()<<
"-f-" <<
"--fields=+S+K+n" << filename
());
...
//
void Editor::slotLoadCtags()
{
QString lu
= testCtags
->readAllStandardOutput
();
...
testCtags->deleteLater();
...
testCtags = new QProcess();
connect(testCtags, SIGNAL(readyReadStandardError()), this, SLOT(slotLoadCtags()) );
connect(testCtags, SIGNAL(readyReadStandardOutput()), this, SLOT(slotLoadCtags()) );
testCtags->start("ctags", QStringList()<<"-f-" << "--fields=+S+K+n" << filename());
...
//
void Editor::slotLoadCtags()
{
QString lu = testCtags->readAllStandardOutput();
...
testCtags->deleteLater();
...
To copy to clipboard, switch view to plain text mode
Bookmarks