textedit_gui.ui

来自「qgo-1.5.4-r3.tar.gz linux下一个很好玩的游戏」· UI 代码 · 共 155 行

UI
155
字号
<!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>&amp;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>&amp;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 + =
减小字号Ctrl + -
显示快捷键?