﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>学习日记 &#187; quit</title>
	<atom:link href="https://www.softwareace.cn/?feed=rss2&#038;tag=quit" rel="self" type="application/rss+xml" />
	<link>https://www.softwareace.cn</link>
	<description>时刻想着为自己的产品多做一些对他好的事情</description>
	<lastBuildDate>Fri, 20 Mar 2026 06:58:28 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>子窗口置顶，关闭，父窗口退出问题解决</title>
		<link>https://www.softwareace.cn/?p=70</link>
		<comments>https://www.softwareace.cn/?p=70#comments</comments>
		<pubDate>Wed, 16 Jan 2013 07:32:06 +0000</pubDate>
		<dc:creator><![CDATA[littlesu]]></dc:creator>
				<category><![CDATA[开发问题]]></category>
		<category><![CDATA[quit]]></category>

		<guid isPermaLink="false">http://192.168.0.106/?p=70</guid>
		<description><![CDATA[[crayon-69ee102fe5d2c113114926/]]]></description>
				<content:encoded><![CDATA[<p></p><pre class="crayon-plain-tag">解决方法：
设置主程序的属性    quitOnLastWindowClosed
QApplication 之 quitOnLastWindowClosed
//main.cpp
QApplicationapp(argc,argv);
app.setQuitOnLastWindowClosed(false);
//mainwindow.cpp
#include&amp;lt;QApplication&amp;gt;
void close()
qApp-&amp;gt;quit();</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>https://www.softwareace.cn/?feed=rss2&#038;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
