📄 name.ui
字号:
<ui version="4.0" > <class>Dialog</class> <widget class="QDialog" name="Dialog" > <property name="geometry" > <rect> <x>0</x> <y>0</y> <width>343</width> <height>112</height> </rect> </property> <property name="windowTitle" > <string>Dialog</string> </property> <widget class="QWidget" name="layoutWidget" > <property name="geometry" > <rect> <x>30</x> <y>20</y> <width>291</width> <height>27</height> </rect> </property> <layout class="QHBoxLayout" > <property name="margin" > <number>0</number> </property> <property name="spacing" > <number>6</number> </property> <item> <widget class="QLabel" name="label" > <property name="text" > <string>Name:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="lineEdit" /> </item> </layout> </widget> <widget class="QWidget" name="layoutWidget" > <property name="geometry" > <rect> <x>30</x> <y>60</y> <width>291</width> <height>29</height> </rect> </property> <layout class="QHBoxLayout" > <property name="margin" > <number>0</number> </property> <property name="spacing" > <number>6</number> </property> <item> <spacer> <property name="orientation" > <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" > <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="pushButton" > <property name="text" > <string>OK</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pushButton_2" > <property name="text" > <string>Cancel</string> </property> </widget> </item> </layout> </widget> </widget> <resources/> <connections> <connection> <sender>pushButton</sender> <signal>clicked()</signal> <receiver>Dialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel" > <x>173</x> <y>73</y> </hint> <hint type="destinationlabel" > <x>118</x> <y>77</y> </hint> </hints> </connection> <connection> <sender>pushButton_2</sender> <signal>clicked()</signal> <receiver>Dialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel" > <x>259</x> <y>72</y> </hint> <hint type="destinationlabel" > <x>143</x> <y>68</y> </hint> </hints> </connection> </connections></ui>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -