<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>ExDlgSize</class> <widget class="QDialog" name="ExDlgSize"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>236</width> <height>128</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>设置表格行列数:</string> </property> <layout class="QGridLayout" name="gridLayout_2"> <item row="1" column="1"> <widget class="QSpinBox" name="spinBoxCol"> <property name="value"> <number>6</number> </property> </widget> </item> <item row="0" column="0"> <widget class="QLabel" name="lab1"> <property name="text"> <string>行数:</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="lab2"> <property name="text"> <string>列数:</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QSpinBox" name="spinBoxRow"> <property name="value"> <number>5</number> </property> </widget> </item> </layout> </widget> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="btnOk"> <property name="text"> <string>确定</string> </property> <property name="icon"> <iconset resource="resources.qrc"> <normaloff>:/images/Image005.png</normaloff>:/images/Image005.png</iconset> </property> </widget> </item> <item> <widget class="QPushButton" name="btnClose"> <property name="text"> <string>关闭</string> </property> <property name="icon"> <iconset resource="resources.qrc"> <normaloff>:/images/Image007.png</normaloff>:/images/Image007.png</iconset> </property> </widget> </item> </layout> </item> </layout> </widget> <resources> <include location="resources.qrc"/> </resources> <connections> <connection> <sender>btnOk</sender> <signal>clicked()</signal> <receiver>ExDlgSize</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>62</x> <y>105</y> </hint> <hint type="destinationlabel"> <x>117</x> <y>63</y> </hint> </hints> </connection> <connection> <sender>btnClose</sender> <signal>clicked()</signal> <receiver>ExDlgSize</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>173</x> <y>105</y> </hint> <hint type="destinationlabel"> <x>117</x> <y>63</y> </hint> </hints> </connection> </connections> </ui>