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

📄 tripplanner.ui

📁 这是qt3.8的示例代码
💻 UI
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE UI><UI version="3.2" stdsetdef="1"><class>TripPlanner</class><widget class="QDialog">    <property name="name">        <cstring>TripPlanner</cstring>    </property>    <property name="geometry">        <rect>            <x>0</x>            <y>0</y>            <width>505</width>            <height>402</height>        </rect>    </property>    <property name="caption">        <string>Trip Planner</string>    </property>    <grid>        <property name="name">            <cstring>unnamed</cstring>        </property>        <widget class="QListView" row="1" column="0">            <column>                <property name="text">                    <string>Date</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <column>                <property name="text">                    <string>Departure</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <column>                <property name="text">                    <string>Arrival</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <column>                <property name="text">                    <string>Duration</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <column>                <property name="text">                    <string>Changes</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <column>                <property name="text">                    <string>Train type</string>                </property>                <property name="clickable">                    <bool>true</bool>                </property>                <property name="resizable">                    <bool>true</bool>                </property>            </column>            <property name="name">                <cstring>listView</cstring>            </property>            <property name="allColumnsShowFocus">                <bool>true</bool>            </property>            <property name="showSortIndicator">                <bool>true</bool>            </property>            <property name="resizeMode">                <enum>LastColumn</enum>            </property>        </widget>        <widget class="QButtonGroup" row="0" column="0">            <property name="name">                <cstring>tripInfoGroupBox</cstring>            </property>            <property name="sizePolicy">                <sizepolicy>                    <hsizetype>7</hsizetype>                    <vsizetype>5</vsizetype>                    <horstretch>0</horstretch>                    <verstretch>0</verstretch>                </sizepolicy>            </property>            <property name="title">                <string>Trip Information</string>            </property>            <grid>                <property name="name">                    <cstring>unnamed</cstring>                </property>                <widget class="QLabel" row="3" column="0">                    <property name="name">                        <cstring>timeLabel</cstring>                    </property>                    <property name="text">                        <string>Appro&amp;ximate Time:</string>                    </property>                    <property name="buddy" stdset="0">                        <cstring>timeEdit</cstring>                    </property>                </widget>                <widget class="QDateEdit" row="2" column="1">                    <property name="name">                        <cstring>dateEdit</cstring>                    </property>                </widget>                <widget class="QTimeEdit" row="3" column="1">                    <property name="name">                        <cstring>timeEdit</cstring>                    </property>                    <property name="display">                        <set>Minutes|Hours</set>                    </property>                </widget>                <widget class="QLabel" row="2" column="0">                    <property name="name">                        <cstring>dateLabel</cstring>                    </property>                    <property name="text">                        <string>&amp;Date:</string>                    </property>                    <property name="buddy" stdset="0">                        <cstring>dateEdit</cstring>                    </property>                </widget>                <widget class="QLabel" row="1" column="0">                    <property name="name">                        <cstring>toLabel</cstring>                    </property>                    <property name="text">                        <string>&amp;To:</string>                    </property>                    <property name="buddy" stdset="0">                        <cstring>toComboBox</cstring>                    </property>                </widget>                <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2">                    <property name="name">                        <cstring>timeLayout</cstring>                    </property>                    <hbox>                        <property name="name">                            <cstring>unnamed</cstring>                        </property>                        <widget class="QRadioButton">                            <property name="name">                                <cstring>departureRadioButton</cstring>                            </property>                            <property name="text">                                <string>D&amp;eparture</string>                            </property>                            <property name="accel">                                <string>Alt+E</string>                            </property>                            <property name="checked">                                <bool>true</bool>                            </property>                        </widget>                        <widget class="QRadioButton">                            <property name="name">                                <cstring>arrivalRadioButton</cstring>                            </property>                            <property name="text">                                <string>&amp;Arrival</string>                            </property>                            <property name="accel">                                <string>Alt+A</string>                            </property>                        </widget>                    </hbox>                </widget>                <widget class="QComboBox" row="0" 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>fromComboBox</cstring>                    </property>                    <property name="currentItem">                        <number>12</number>                    </property>

⌨️ 快捷键说明

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