Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
stevewang last edited by
I have a command-line tool that I am calling using QThread.
One problem is that the command-line tool will crash if there is something wrong with the input data. However, I want the program to pop-up a dialog and tell the user to check the input data, rather than crash directly.
Is there any method to achieve this?
Thanks a lot.
koahnig last edited by
The "QProcess":http://qt-project.org/doc/qt-5/qprocess.html with "processError":http://qt-project.org/doc/qt-5/qprocess.html#ProcessError-enum which can be checked.