PDA

View Full Version : How to restart an application?



xylosper
12th August 2007, 06:44
My application has an problem I don't know how to solve, so I decided whenever the problem occurs, restart the application.

I know it's not the best way, but it's the only way I can take for now.

Anyway, I have new problem.

Like the title, I don't know how to restart an application.

I use Qt 4.3.0 open source edition for win32.

jpn
12th August 2007, 12:36
I warmly encourage you to try to solve the problem in different manner than restarting the application. However, if you insist, use QProcess::startDetached() to launch a new process and then just quit the current one.

xylosper
12th August 2007, 14:04
The problem's solved.

Thank you very much!