⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newprojectdialog.ui

📁 这是一个用QT做的用加农炮大飞碟的示例程序.对学习QT有很大帮助. 这是最后的例子:一个完整的游戏。 我们添加键盘快捷键并引入鼠标事件到CannonField。我们在CannonField周
💻 UI
字号:
<!DOCTYPE UI><UI>
<class>NewProjectDialog1</class>
<widget>
	<class>QDialog</class>
	<property>
		<name>name</name>
		<cstring>NewProjectDialog</cstring>
	</property>
	<property>
		<name>geometry</name>
		<rect>
			<x>0</x>
			<y>0</y>
			<width>519</width>
			<height>285</height>
		</rect>
	</property>
	<property>
		<name>caption</name>
		<string>NewProject</string>
	</property>
	<property>
		<name>sizeGripEnabled</name>
		<bool>true</bool>
	</property>
	<widget>
		<class>QLayoutWidget</class>
		<property>
			<name>name</name>
			<cstring>Layout1</cstring>
		</property>
		<property>
			<name>geometry</name>
			<rect>
				<x>20</x>
				<y>240</y>
				<width>476</width>
				<height>33</height>
			</rect>
		</property>
		<hbox>
		<property>
			<name>margin</name>
			<number>0</number>
		</property>
		<property>
			<name>spacing</name>
			<number>6</number>
		</property>
		<widget>
		<class>QPushButton</class>
		<property>
			<name>name</name>
			<cstring>buttonHelp</cstring>
		</property>
		<property>
			<name>text</name>
			<string>&amp;Help</string>
		</property>
		<property>
			<name>autoDefault</name>
			<bool>true</bool>
		</property>
		</widget>
		<spacer>
		<property>
			<name>name</name>
			<cstring>Horizontal Spacing2</cstring>
		</property>
		<property>
		<name>geometry</name>
		<rect>
		<x>87</x>
		<y>6</y>
		<width>130</width>
		<height>20</height>
		</rect>
		</property>
		<property>
		<name>orientation</name>
		<enum>Horizontal</enum>
		</property>
		<property>
		<name>sizeType</name>
		<enum>Expanding</enum>
		</property>
		</spacer>
		<widget>
		<class>QPushButton</class>
		<property>
		<name>name</name>
		<cstring>buttonApply</cstring>
		</property>
		<property>
		<name>text</name>
		<string>&amp;Apply</string>
		</property>
		<property>
		<name>autoDefault</name>
		<bool>true</bool>
		</property>
		</widget>
		<widget>
		<class>QPushButton</class>
		<property>
		<name>name</name>
		<cstring>buttonOk</cstring>
		</property>
		<property>
		<name>caption</name>
		<string></string>
		</property>
		<property>
		<name>text</name>
		<string>&amp;OK</string>
		</property>
		<property>
		<name>autoDefault</name>
		<bool>true</bool>
		</property>
		<property>
		<name>default</name>
		<bool>true</bool>
		</property>
		</widget>
		<widget>
		<class>QPushButton</class>
		<property>
		<name>name</name>
		<cstring>buttonCancel</cstring>
		</property>
		<property>
		<name>text</name>
		<string>&amp;Cancel</string>
		</property>
		<property>
		<name>autoDefault</name>
		<bool>true</bool>
		</property>
		</widget>
		</hbox>
		</widget>
		<widget>
		<class>QLabel</class>
		<property>
		<name>name</name>
		<cstring>TextLabel1</cstring>
		</property>
		<property>
		<name>geometry</name>
		<rect>
		<x>200</x>
		<y>120</y>
		<width>116</width>
		<height>13</height>
		</rect>
		</property>
		<property>
		<name>text</name>
		<string>Place your widgets here!</string>
		</property>
	</widget>
</widget>
<connections>
	<connection>
		<sender>buttonOk</sender>
		<signal>clicked()</signal>
		<receiver>NewProjectDialog</receiver>
		<slot>accept()</slot>
	</connection>
	<connection>
		<sender>buttonCancel</sender>
		<signal>clicked()</signal>
		<receiver>NewProjectDialog</receiver>
	<slot>reject()</slot>
	</connection>
</connections>
</UI>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -