A better idea might be to use QProcess::terminate(), and if the process doesn't terminate within some time frame, then use QProcess:kill(). At least then it'll give the process that amount of time to cleanup if necessary, and will also work in situations where the process doesn't handle WM_CLOSE.
Bookmarks