Yes, but this doesn't explain the hanging. I wonder whether the application, doesn't look like this:
Qt Code:
QProcess p; ... ... p.waitForFinished( ... );To copy to clipboard, switch view to plain text mode
Yes, but this doesn't explain the hanging. I wonder whether the application, doesn't look like this:
Qt Code:
QProcess p; ... ... p.waitForFinished( ... );To copy to clipboard, switch view to plain text mode
sincnarf (11th October 2007)
I didn't use waitForFinished because this means I have to close eog first before I can get back to my mainwindow. What I was trying to do was to both simultaneously run my mainwindow and the process eog.
Does this mean I can't run my mainwindow along with the QProcess that calls eog?
Image Analysis Development Framework Using Qt (IADFUQ)
You can, you just can't use the static method approach. You need to create a regular QProcess object (on heap), call start() on it and voila. You should be able to continue using your application while the viewer executes. If your application still hangs, it means the process has nothing to do with it - try commenting out those lines related to QProcess and see if the application hangs or not.
sincnarf (13th October 2007)
Bookmarks