<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to detach qt gui app from its parent]]></title><description><![CDATA[<p dir="auto">I am starting a Qt gui app using QProcess::start() call.<br />
When I am closing my qt app , I would like to detach it from its parent, please advice how to detach it using Qt way.</p>
<p dir="auto">Also when I say qApp-&gt;exit(1), in my Qt application then it takes around 3~4 seconds to terminate itself completely. What is the faster way to terminate a Qt app by itself.</p>
]]></description><link>https://forum.qt.io/topic/24926/how-to-detach-qt-gui-app-from-its-parent</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 08:11:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/24926.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Mar 2013 06:34:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to detach qt gui app from its parent on Thu, 07 Mar 2013 08:02:07 GMT]]></title><description><![CDATA[<p dir="auto">"Fork()":<a href="http://en.wikipedia.org/wiki/Fork_(operating_system)" target="_blank" rel="noopener noreferrer nofollow ugc">http://en.wikipedia.org/wiki/Fork_(operating_system)</a>.</p>
<p dir="auto">I don't think the OS will allow you to detach from within the child.</p>
]]></description><link>https://forum.qt.io/post/169437</link><guid isPermaLink="true">https://forum.qt.io/post/169437</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 07 Mar 2013 08:02:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to detach qt gui app from its parent on Thu, 07 Mar 2013 07:44:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi Thanks for your suggestion. But I am looking to detach my client process from its parent within the code of client.</p>
<p dir="auto">startDetached() will launch my client process as a separate process, that I dont want. I just wanted to run it as a child process only , and in some button click event of my child process I wanted to break the child-parent relationship.</p>
<p dir="auto">Please advice.</p>
]]></description><link>https://forum.qt.io/post/169435</link><guid isPermaLink="true">https://forum.qt.io/post/169435</guid><dc:creator><![CDATA[aashish.lg]]></dc:creator><pubDate>Thu, 07 Mar 2013 07:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to How to detach qt gui app from its parent on Thu, 07 Mar 2013 07:19:05 GMT]]></title><description><![CDATA[<p dir="auto">QProcess::startDetached().</p>
<p dir="auto">As for exiting, profile your app with valgrind, you're probably using many resources that need to be cleaned and it takes time. You can kill the process, but that is not really a good way to do things.</p>
]]></description><link>https://forum.qt.io/post/169425</link><guid isPermaLink="true">https://forum.qt.io/post/169425</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 07 Mar 2013 07:19:05 GMT</pubDate></item></channel></rss>