Hello,
I'm looking for some advice on how to refresh/redraw my main application after running an external application.
Currently I'm doing the following:
systemCall.start( externalAppPath, externalAppArgs );
systemCall.waitForFinished( -1 ); //wait indefinitely for process to finish
systemCall.close();
while( (qwParent) )
{
qDebug() << "repainting parent :" << qwParent;
qwParent->repaint();
qwParent = qwParent->parentWidget();
qDebug() << "next parent :" << qwParent;
}
QProcess systemCall;
systemCall.start( externalAppPath, externalAppArgs );
systemCall.waitForFinished( -1 ); //wait indefinitely for process to finish
systemCall.close();
QWidget *qwParent = this;
while( (qwParent) )
{
qDebug() << "repainting parent :" << qwParent;
qwParent->repaint();
qwParent = qwParent->parentWidget();
qDebug() << "next parent :" << qwParent;
}
To copy to clipboard, switch view to plain text mode
As one of the options in my main application I have to launch our external application and wait for it to finish.
On exiting the external application and returning to my main app I need to repaint all parent widgets using the above while loop.
My question is - is there a better way of achieving this?
Bookmarks