📄 testbutton2.ui
字号:
<!DOCTYPE UI><UI><class>TestButton2</class><widget> <class>QWidget</class> <property stdset="1"> <name>name</name> <cstring>TestButton2</cstring> </property> <property stdset="1"> <name>geometry</name> <rect> <x>0</x> <y>0</y> <width>312</width> <height>344</height> </rect> </property> <property stdset="1"> <name>caption</name> <string>Form4</string> </property> <property> <name>layoutMargin</name> </property> <property> <name>layoutSpacing</name> </property> <vbox> <property stdset="1"> <name>margin</name> <number>11</number> </property> <property stdset="1"> <name>spacing</name> <number>6</number> </property> <widget> <class>QButtonGroup</class> <property stdset="1"> <name>name</name> <cstring>ButtonGroup1</cstring> </property> <property stdset="1"> <name>title</name> <string>Push Buttons</string> </property> <hbox> <property stdset="1"> <name>margin</name> <number>11</number> </property> <property stdset="1"> <name>spacing</name> <number>6</number> </property> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton1</cstring> </property> <property stdset="1"> <name>text</name> <string>Normal</string> </property> </widget> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton2_2</cstring> </property> <property stdset="1"> <name>font</name> <font> <pointsize>16</pointsize> <bold>1</bold> <italic>1</italic> </font> </property> <property stdset="1"> <name>text</name> <string>Font</string> </property> </widget> </hbox> </widget> <spacer> <property> <name>name</name> <cstring>Spacer1</cstring> </property> <property> <name>orientation</name> <enum>Vertical</enum> </property> <property> <name>sizeType</name> <enum>Expanding</enum> </property> <property> <name>sizeHint</name> <size> <width>20</width> <height>20</height> </size> </property> </spacer> <widget> <class>QButtonGroup</class> <property stdset="1"> <name>name</name> <cstring>ButtonGroup2</cstring> </property> <property stdset="1"> <name>title</name> <string>Toggle Buttons</string> </property> <hbox> <property stdset="1"> <name>margin</name> <number>11</number> </property> <property stdset="1"> <name>spacing</name> <number>6</number> </property> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton1_2</cstring> </property> <property stdset="1"> <name>text</name> <string>Normal</string> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> </widget> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton4</cstring> </property> <property stdset="1"> <name>text</name> <string>Toggled</string> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> <property stdset="1"> <name>on</name> <bool>true</bool> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> <property stdset="1"> <name>on</name> <bool>true</bool> </property> </widget> <widget> <class>QPushButton</class> <property stdset="1"> <name>name</name> <cstring>PushButton2_3</cstring> </property> <property stdset="1"> <name>font</name> <font> <pointsize>16</pointsize> <bold>1</bold> <italic>1</italic> </font> </property> <property stdset="1"> <name>text</name> <string>Font</string> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> <property stdset="1"> <name>toggleButton</name> <bool>true</bool> </property> </widget> </hbox> </widget> <spacer> <property> <name>name</name> <cstring>Spacer1_2</cstring> </property> <property> <name>orientation</name> <enum>Vertical</enum> </property> <property> <name>sizeType</name> <enum>Expanding</enum> </property> <property> <name>sizeHint</name> <size> <width>20</width> <height>20</height> </size> </property> </spacer> <widget> <class>QButtonGroup</class> <property stdset="1"> <name>name</name> <cstring>ButtonGroup3</cstring> </property> <property stdset="1"> <name>title</name> <string>Check Boxes</string> </property> <hbox> <property stdset="1"> <name>margin</name> <number>11</number> </property> <property stdset="1"> <name>spacing</name> <number>6</number> </property> <widget> <class>QCheckBox</class> <property stdset="1"> <name>name</name> <cstring>CheckBox1</cstring> </property> <property stdset="1"> <name>text</name> <string>CheckBox1</string> </property> <property stdset="1"> <name>checked</name> <bool>true</bool> </property> </widget> <widget> <class>QCheckBox</class> <property stdset="1"> <name>name</name> <cstring>CheckBox2</cstring> </property> <property stdset="1"> <name>text</name> <string>CheckBox2</string> </property> </widget> <widget> <class>QCheckBox</class> <property stdset="1"> <name>name</name> <cstring>CheckBox3</cstring> </property> <property stdset="1"> <name>text</name> <string>CheckBox3</string> </property> </widget> </hbox> </widget> <spacer> <property> <name>name</name> <cstring>Spacer1_3</cstring> </property> <property> <name>orientation</name> <enum>Vertical</enum> </property> <property> <name>sizeType</name> <enum>Expanding</enum> </property> <property> <name>sizeHint</name> <size> <width>20</width> <height>20</height> </size> </property> </spacer> <widget> <class>QButtonGroup</class> <property stdset="1"> <name>name</name> <cstring>ButtonGroup4</cstring> </property> <property stdset="1"> <name>title</name> <string>Radio Buttons</string> </property> <hbox> <property stdset="1"> <name>margin</name> <number>11</number> </property> <property stdset="1"> <name>spacing</name> <number>6</number> </property> <widget> <class>QRadioButton</class> <property stdset="1"> <name>name</name> <cstring>RadioButton1</cstring> </property> <property stdset="1"> <name>text</name> <string>RadioButton1</string> </property> <property stdset="1"> <name>checked</name> <bool>true</bool> </property> </widget> <widget> <class>QRadioButton</class> <property stdset="1"> <name>name</name> <cstring>RadioButton2</cstring> </property> <property stdset="1"> <name>text</name> <string>RadioButton2</string> </property> </widget> <widget> <class>QRadioButton</class> <property stdset="1"> <name>name</name> <cstring>RadioButton3</cstring> </property> <property stdset="1"> <name>text</name> <string>RadioButton3</string> </property> </widget> </hbox> </widget> </vbox></widget></UI>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -