test.ui

来自「本文件是<精通QT4编程>的配套源代码」· UI 代码 · 共 120 行

UI
120
字号
<ui version="4.0" > <class>czm</class> <widget class="QDialog" name="czm" >  <property name="geometry" >   <rect>    <x>0</x>    <y>0</y>    <width>400</width>    <height>300</height>   </rect>  </property>  <property name="windowTitle" >   <string>zeki</string>  </property>  <widget class="QDialogButtonBox" name="buttonBox" >   <property name="geometry" >    <rect>     <x>30</x>     <y>240</y>     <width>341</width>     <height>32</height>    </rect>   </property>   <property name="orientation" >    <enum>Qt::Horizontal</enum>   </property>   <property name="standardButtons" >    <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>   </property>  </widget>  <widget class="QPushButton" name="pushButton" >   <property name="geometry" >    <rect>     <x>70</x>     <y>60</y>     <width>75</width>     <height>25</height>    </rect>   </property>   <property name="text" >    <string>PushButton</string>   </property>  </widget>  <widget class="QToolButton" name="toolButton" >   <property name="geometry" >    <rect>     <x>220</x>     <y>60</y>     <width>25</width>     <height>24</height>    </rect>   </property>   <property name="text" >    <string>...</string>   </property>  </widget>  <widget class="QRadioButton" name="radioButton" >   <property name="geometry" >    <rect>     <x>110</x>     <y>120</y>     <width>85</width>     <height>21</height>    </rect>   </property>   <property name="text" >    <string>RadioButton</string>   </property>  </widget>  <widget class="QCheckBox" name="checkBox" >   <property name="geometry" >    <rect>     <x>250</x>     <y>120</y>     <width>73</width>     <height>20</height>    </rect>   </property>   <property name="text" >    <string>CheckBox</string>   </property>  </widget> </widget> <resources/> <connections>  <connection>   <sender>buttonBox</sender>   <signal>accepted()</signal>   <receiver>czm</receiver>   <slot>accept()</slot>   <hints>    <hint type="sourcelabel" >     <x>248</x>     <y>254</y>    </hint>    <hint type="destinationlabel" >     <x>157</x>     <y>274</y>    </hint>   </hints>  </connection>  <connection>   <sender>buttonBox</sender>   <signal>rejected()</signal>   <receiver>czm</receiver>   <slot>reject()</slot>   <hints>    <hint type="sourcelabel" >     <x>316</x>     <y>260</y>    </hint>    <hint type="destinationlabel" >     <x>286</x>     <y>274</y>    </hint>   </hints>  </connection> </connections></ui>

⌨️ 快捷键说明

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