[Qt-interest] Qt4 & fork()
Rohan McGovern
rmcgover at trolltech.com
Mon Dec 8 02:43:36 CET 2008
On Monday 08 December 2008, Miguel Cardenas wrote:
> Hi again
>
> I've just found that QProcess does not start a new independent
> process, it blocks the main Qt application and returns/aborts
> immediatly if don't set a wait condition that I don't need just
> want to launch a command line application and let it run without
> taking future care of it, so, should I use QProcess + QThread?
QProcess does start a new process and it doesn't block the current
application if you don't use its blocking functions (anything named
waitFor...)
If you don't need to interact with the launched process you can use
QProcess::startDetached().
--
Rohan McGovern
Qt Software, Nokia
More information about the Qt-interest-old
mailing list