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

📄 sortdialog.ui

📁 c++ GUI Programming with QT4书中的源码
💻 UI
字号:
<ui version="4.0" > <author></author> <comment></comment> <exportmacro></exportmacro> <class>SortDialog</class> <widget class="QDialog" name="SortDialog" >  <property name="windowTitle" >   <string>Sort</string>  </property>  <layout class="QGridLayout" >   <item rowspan="2" row="0" column="1" >    <layout class="QVBoxLayout" >     <item>      <widget class="QPushButton" name="okButton" >       <property name="text" >        <string>OK</string>       </property>       <property name="default" >        <bool>true</bool>       </property>      </widget>     </item>     <item>      <widget class="QPushButton" name="cancelButton" >       <property name="text" >        <string>Cancel</string>       </property>      </widget>     </item>     <item>      <spacer>       <property name="orientation" >        <enum>Qt::Vertical</enum>       </property>       <property name="sizeHint" >        <size>         <width>20</width>         <height>0</height>        </size>       </property>      </spacer>     </item>     <item>      <widget class="QPushButton" name="moreButton" >       <property name="text" >        <string>&amp;More</string>       </property>       <property name="checkable" >        <bool>true</bool>       </property>      </widget>     </item>    </layout>   </item>   <item row="3" column="0" >    <widget class="QGroupBox" name="tertiaryGroupBox" >     <property name="title" >      <string>&amp;Tertiary Key</string>     </property>     <layout class="QGridLayout" >      <item row="1" column="1" colspan="2" >       <widget class="QComboBox" name="tertiaryOrderCombo" >        <item>         <property name="text" >          <string>Ascending</string>         </property>        </item>        <item>         <property name="text" >          <string>Descending</string>         </property>        </item>       </widget>      </item>      <item row="1" column="0" >       <widget class="QLabel" name="tertiaryOrderLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Order:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="0" >       <widget class="QLabel" name="tertiaryColumnLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Column:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="2" >       <spacer>        <property name="orientation" >         <enum>Qt::Horizontal</enum>        </property>        <property name="sizeHint" >         <size>          <width>31</width>          <height>20</height>         </size>        </property>       </spacer>      </item>      <item row="0" column="1" >       <widget class="QComboBox" name="tertiaryColumnCombo" >        <item>         <property name="text" >          <string>None</string>         </property>        </item>       </widget>      </item>     </layout>    </widget>   </item>   <item row="2" column="0" >    <widget class="QGroupBox" name="secondaryGroupBox" >     <property name="title" >      <string>&amp;Secondary Key</string>     </property>     <layout class="QGridLayout" >      <item row="1" column="1" colspan="2" >       <widget class="QComboBox" name="secondaryOrderCombo" >        <item>         <property name="text" >          <string>Ascending</string>         </property>        </item>        <item>         <property name="text" >          <string>Descending</string>         </property>        </item>       </widget>      </item>      <item row="1" column="0" >       <widget class="QLabel" name="secondaryOrderLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Order:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="0" >       <widget class="QLabel" name="secondaryColumnLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Column:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="2" >       <spacer>        <property name="orientation" >         <enum>Qt::Horizontal</enum>        </property>        <property name="sizeHint" >         <size>          <width>31</width>          <height>20</height>         </size>        </property>       </spacer>      </item>      <item row="0" column="1" >       <widget class="QComboBox" name="secondaryColumnCombo" >        <item>         <property name="text" >          <string>None</string>         </property>        </item>       </widget>      </item>     </layout>    </widget>   </item>   <item row="1" column="0" >    <spacer>     <property name="orientation" >      <enum>Qt::Vertical</enum>     </property>     <property name="sizeType" >      <enum>QSizePolicy::Expanding</enum>     </property>     <property name="sizeHint" >      <size>       <width>20</width>       <height>0</height>      </size>     </property>    </spacer>   </item>   <item row="0" column="0" >    <widget class="QGroupBox" name="primaryGroupBox" >     <property name="title" >      <string>&amp;Primary Key</string>     </property>     <layout class="QGridLayout" >      <item row="1" column="1" colspan="2" >       <widget class="QComboBox" name="primaryOrderCombo" >        <item>         <property name="text" >          <string>Ascending</string>         </property>        </item>        <item>         <property name="text" >          <string>Descending</string>         </property>        </item>       </widget>      </item>      <item row="1" column="0" >       <widget class="QLabel" name="primaryOrderLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Order:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="0" >       <widget class="QLabel" name="primaryColumnLabel" >        <property name="text" >         <string>&lt;html>&lt;head>&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; />&lt;/head>&lt;body style=&quot; white-space: pre-wrap; font-family:Sans Serif; font-weight:400; font-style:normal; text-decoration:none;&quot;>&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;>Column:&lt;/p>&lt;/body>&lt;/html></string>        </property>       </widget>      </item>      <item row="0" column="2" >       <spacer>        <property name="orientation" >         <enum>Qt::Horizontal</enum>        </property>        <property name="sizeHint" >         <size>          <width>31</width>          <height>20</height>         </size>        </property>       </spacer>      </item>      <item row="0" column="1" >       <widget class="QComboBox" name="primaryColumnCombo" >        <item>         <property name="text" >          <string>None</string>         </property>        </item>       </widget>      </item>     </layout>    </widget>   </item>  </layout> </widget> <pixmapfunction></pixmapfunction> <tabstops>  <tabstop>primaryColumnCombo</tabstop>  <tabstop>primaryOrderCombo</tabstop>  <tabstop>secondaryColumnCombo</tabstop>  <tabstop>secondaryOrderCombo</tabstop>  <tabstop>tertiaryColumnCombo</tabstop>  <tabstop>tertiaryOrderCombo</tabstop>  <tabstop>okButton</tabstop>  <tabstop>cancelButton</tabstop>  <tabstop>moreButton</tabstop> </tabstops> <resources/> <connections>  <connection>   <sender>moreButton</sender>   <signal>toggled(bool)</signal>   <receiver>secondaryGroupBox</receiver>   <slot>setVisible(bool)</slot>   <hints>    <hint type="sourcelabel" >     <x>295</x>     <y>158</y>    </hint>    <hint type="destinationlabel" >     <x>104</x>     <y>166</y>    </hint>   </hints>  </connection>  <connection>   <sender>moreButton</sender>   <signal>toggled(bool)</signal>   <receiver>tertiaryGroupBox</receiver>   <slot>setVisible(bool)</slot>   <hints>    <hint type="sourcelabel" >     <x>240</x>     <y>141</y>    </hint>    <hint type="destinationlabel" >     <x>170</x>     <y>307</y>    </hint>   </hints>  </connection>  <connection>   <sender>okButton</sender>   <signal>clicked()</signal>   <receiver>SortDialog</receiver>   <slot>accept()</slot>   <hints>    <hint type="sourcelabel" >     <x>257</x>     <y>25</y>    </hint>    <hint type="destinationlabel" >     <x>283</x>     <y>268</y>    </hint>   </hints>  </connection>  <connection>   <sender>cancelButton</sender>   <signal>clicked()</signal>   <receiver>SortDialog</receiver>   <slot>reject()</slot>   <hints>    <hint type="sourcelabel" >     <x>225</x>     <y>56</y>    </hint>    <hint type="destinationlabel" >     <x>264</x>     <y>335</y>    </hint>   </hints>  </connection> </connections></ui>

⌨️ 快捷键说明

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