📄 textedit_gui.ui
字号:
<!DOCTYPE UI><UI><class>TextEditDialog</class><widget> <class>QDialog</class> <property stdset="1"> <name>name</name> <cstring>TextEditDialog</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> <width>190</width> <height>100</height> </rect> </property> <property stdset="1"> <name>minimumSize</name> <size> <width>190</width> <height>100</height> </size> </property> <property stdset="1"> <name>maximumSize</name> <size> <width>190</width> <height>100</height> </size> </property> <property stdset="1"> <name>caption</name> <string>Text Label</string> </property> <property> <name>layoutMargin</name> </property> <property> <name>layoutSpacing</name> </property> <widget> <class>QLabel</class> <property stdset="1"> <name>name</name> <cstring>TextLabel1</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>10</x> <y>10</y> <width>148</width> <height>15</height> </rect> </property> <property stdset="1"> <name>text</name> <string>Enter the text for this label:</string> </property> </widget> <widget> <class>QLineEdit</class> <property stdset="1"> <name>name</name> <cstring>textLineEdit</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>10</x> <y>30</y> <width>170</width> <height>23</height> </rect> </property> <property stdset="1"> <name>maxLength</name> <number>20</number> </property> </widget> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>buttonOk</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>10</x> <y>60</y> <width>80</width> <height>32</height> </rect> </property> <property stdset="1"> <name>text</name> <string>&OK</string> </property> <property stdset="1"> <name>autoDefault</name> <bool>true</bool> </property> <property stdset="1"> <name>default</name> <bool>true</bool> </property> </widget> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>buttonCancel</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>100</x> <y>60</y> <width>80</width> <height>32</height> </rect> </property> <property stdset="1"> <name>text</name> <string>&Cancel</string> </property> <property stdset="1"> <name>autoDefault</name> <bool>true</bool> </property> </widget></widget><connections> <connection> <sender>buttonOk</sender> <signal>clicked()</signal> <receiver>TextEditDialog</receiver> <slot>accept()</slot> </connection> <connection> <sender>buttonCancel</sender> <signal>clicked()</signal> <receiver>TextEditDialog</receiver> <slot>reject()</slot> </connection></connections><tabstops> <tabstop>textLineEdit</tabstop> <tabstop>buttonOk</tabstop> <tabstop>buttonCancel</tabstop></tabstops></UI>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -