[Qt-interest] startDetached not working for standalone prog

Doug Stewart doug.dastew at gmail.com
Tue Aug 30 18:13:28 CEST 2011


    QProcess *process = new QProcess();

    /* My dad wants this to start detached, so that many can be open at the

     * same time.

     */

    process->startDetached(m_system->getOctavePath(), QStringList() <<
fileName);

 *
*


With this code It  sort of works the way the doc states.

   When I run it from Qtcreator It starts a new window with octave running
in the window, and I can start many more of these which is what I want.
   When I close my C++ program then all these separate windows close.

  When I compile to an executable and run it, the new window gets started
but then immediately closes. Not what I want!!!

Why the difference between running from the IDE and running from a compiled
executable??

Doug

-- 
DAS

https://linuxcounter.net/user/206392.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110830/94741047/attachment.html 


More information about the Qt-interest-old mailing list