⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tripplanner.ui

📁 这是qt3.8的示例代码
💻 UI
📖 第 1 页 / 共 2 页
字号:
                </widget>                <widget class="QComboBox" row="1" column="1">                    <item>                        <property name="text">                            <string>Berlin</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Bonn</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Bremen</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Dresden</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>D眉sseldorf</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Dortmund</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Frankfurt am Main</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Hannover</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Hamburg</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>M眉nchen</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>N眉rnberg</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Rostock</string>                        </property>                    </item>                    <item>                        <property name="text">                            <string>Stuttgart</string>                        </property>                    </item>                    <property name="name">                        <cstring>toComboBox</cstring>                    </property>                    <property name="currentItem">                        <number>6</number>                    </property>                </widget>                <widget class="QLabel" row="0" column="0">                    <property name="name">                        <cstring>fromLabel</cstring>                    </property>                    <property name="text">                        <string>&amp;From:</string>                    </property>                    <property name="buddy" stdset="0">                        <cstring>fromComboBox</cstring>                    </property>                </widget>            </grid>        </widget>        <widget class="QLayoutWidget" row="0" column="1" rowspan="3" colspan="1">            <property name="name">                <cstring>buttonLayout</cstring>            </property>            <vbox>                <property name="name">                    <cstring>unnamed</cstring>                </property>                <widget class="QPushButton">                    <property name="name">                        <cstring>searchButton</cstring>                    </property>                    <property name="sizePolicy">                        <sizepolicy>                            <hsizetype>0</hsizetype>                            <vsizetype>0</vsizetype>                            <horstretch>0</horstretch>                            <verstretch>0</verstretch>                        </sizepolicy>                    </property>                    <property name="text">                        <string>&amp;Search</string>                    </property>                    <property name="accel">                        <string>Alt+S</string>                    </property>                    <property name="default">                        <bool>true</bool>                    </property>                </widget>                <widget class="QPushButton">                    <property name="name">                        <cstring>stopButton</cstring>                    </property>                    <property name="enabled">                        <bool>false</bool>                    </property>                    <property name="sizePolicy">                        <sizepolicy>                            <hsizetype>0</hsizetype>                            <vsizetype>0</vsizetype>                            <horstretch>0</horstretch>                            <verstretch>0</verstretch>                        </sizepolicy>                    </property>                    <property name="text">                        <string>S&amp;top</string>                    </property>                    <property name="accel">                        <string>Alt+T</string>                    </property>                </widget>                <spacer>                    <property name="name">                        <cstring>buttonSpacer</cstring>                    </property>                    <property name="orientation">                        <enum>Vertical</enum>                    </property>                    <property name="sizeType">                        <enum>Expanding</enum>                    </property>                    <property name="sizeHint">                        <size>                            <width>20</width>                            <height>10</height>                        </size>                    </property>                </spacer>                <widget class="QPushButton">                    <property name="name">                        <cstring>quitButton</cstring>                    </property>                    <property name="sizePolicy">                        <sizepolicy>                            <hsizetype>0</hsizetype>                            <vsizetype>0</vsizetype>                            <horstretch>0</horstretch>                            <verstretch>0</verstretch>                        </sizepolicy>                    </property>                    <property name="text">                        <string>&amp;Quit</string>                    </property>                    <property name="accel">                        <string>Alt+Q</string>                    </property>                </widget>            </vbox>        </widget>        <widget class="QLayoutWidget" row="2" column="0">            <property name="name">                <cstring>statusLayout</cstring>            </property>            <hbox>                <property name="name">                    <cstring>unnamed</cstring>                </property>                <widget class="QLabel">                    <property name="name">                        <cstring>statusLabel</cstring>                    </property>                    <property name="sizePolicy">                        <sizepolicy>                            <hsizetype>7</hsizetype>                            <vsizetype>5</vsizetype>                            <horstretch>0</horstretch>                            <verstretch>0</verstretch>                        </sizepolicy>                    </property>                    <property name="text">                        <string>Ready</string>                    </property>                </widget>                <widget class="QProgressBar">                    <property name="name">                        <cstring>progressBar</cstring>                    </property>                    <property name="sizePolicy">                        <sizepolicy>                            <hsizetype>5</hsizetype>                            <vsizetype>0</vsizetype>                            <horstretch>0</horstretch>                            <verstretch>0</verstretch>                        </sizepolicy>                    </property>                    <property name="totalSteps">                        <number>0</number>                    </property>                    <property name="percentageVisible">                        <bool>false</bool>                    </property>                </widget>            </hbox>        </widget>    </grid></widget><connections>    <connection>        <sender>searchButton</sender>        <signal>clicked()</signal>        <receiver>TripPlanner</receiver>        <slot>connectToServer()</slot>    </connection>    <connection>        <sender>stopButton</sender>        <signal>clicked()</signal>        <receiver>TripPlanner</receiver>        <slot>stopSearch()</slot>    </connection>    <connection>        <sender>quitButton</sender>        <signal>clicked()</signal>        <receiver>TripPlanner</receiver>        <slot>close()</slot>    </connection></connections><includes>    <include location="global" impldecl="in declaration">qapplication.h</include>    <include location="global" impldecl="in declaration">qsocket.h</include>    <include location="global" impldecl="in declaration">qtimer.h</include></includes><variables>    <variable access="private">QSocket socket;</variable>    <variable access="private">QTimer connectionTimer;</variable>    <variable access="private">QTimer progressBarTimer;</variable>    <variable access="private">Q_UINT16 blockSize;</variable></variables><slots>    <slot access="private">advanceProgressBar()</slot>    <slot access="private">connectToServer()</slot>    <slot access="private">sendRequest()</slot>    <slot access="private">updateListView()</slot>    <slot access="private">closeConnection()</slot>    <slot access="private">stopSearch()</slot>    <slot access="private">connectionTimeout()</slot>    <slot access="private">connectionClosedByServer()</slot>    <slot access="private">error(int)</slot></slots><functions>    <function access="private" specifier="non virtual">init()</function></functions><layoutdefaults spacing="6" margin="11"/></UI>

⌨️ 快捷键说明

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