newprojectdialog.ui
来自「这是一个用QT做的用加农炮大飞碟的示例程序.对学习QT有很大帮助. 这是最后的」· UI 代码 · 共 180 行
UI
180 行
<!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>&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>&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>&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>&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 + =
减小字号Ctrl + -
显示快捷键?