tags:

views:

690

answers:

1

Is there a way in QT to terminate a'la TerminateProcess the current process?

QProcess::kill() seem to be only applicable to other, external processes.

A: 

Just call TerminateProcess directly, or if you want something platform independant: exit()

PiedPiper
Question: How do I use X to avoid having to use Y. Answer: Just use Y. Nice one.
shoosh
TerminateProcess does what you want. Why do you need it wrapped in a Qt function?
PiedPiper
platform independence obviously.
shoosh
You should have made it clear that you needed a platform independent solution. As far as I know exit() is available on all platforms.
PiedPiper