1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>486</width>
<height>376</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>The "Help" menu should NOT be visible.
Click on "Dynamic Stuff" then move left and right to other menus. Disabled items should remain that way.</string>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>Enable "Stuff" Menu</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Populate Dynamic Submenu</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item alignment="Qt::AlignTop">
<widget class="QPushButton" name="addManyButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Add Many Items</string>
</property>
</widget>
</item>
<item alignment="Qt::AlignTop">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Adding hundreds of items should not block the UI for noticeable periods of time. Odd numbered items should be disabled, those with 2nd LSB on should be hidden.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item alignment="Qt::AlignTop">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Check out the dock menu. You can close this window to verify that its actions will trigger in the absence of any window. And you can add more windows from there too.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>486</width>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuStuff">
<property name="title">
<string>Stuff</string>
</property>
<widget class="QMenu" name="menuSubmenu">
<property name="title">
<string>Submenu</string>
</property>
<widget class="QMenu" name="menuMore_Submenu_2">
<property name="title">
<string>More Submenu</string>
</property>
<addaction name="actionMOARH"/>
</widget>
<addaction name="actionWith_More_Stuff"/>
<addaction name="menuMore_Submenu_2"/>
</widget>
<widget class="QMenu" name="menuDisabled_Submenu">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>Disabled Submenu</string>
</property>
<widget class="QMenu" name="menuMore_Submenu">
<property name="title">
<string>More Submenu</string>
</property>
<addaction name="actionShould_be_Disabled_Too"/>
</widget>
<addaction name="actionShould_be_Disabled"/>
<addaction name="menuMore_Submenu"/>
</widget>
<addaction name="actionItem"/>
<addaction name="menuSubmenu"/>
<addaction name="actionDisabled_Item"/>
<addaction name="menuDisabled_Submenu"/>
<addaction name="separator"/>
</widget>
<widget class="QMenu" name="menuDisabled_Stuff">
<property name="enabled">
<bool>false</bool>
</property>
<property name="title">
<string>Disabled Stuff</string>
</property>
<widget class="QMenu" name="menuSubmenu_2">
<property name="title">
<string>Disabled Submenu</string>
</property>
<widget class="QMenu" name="menuSubsubmenu">
<property name="title">
<string>Disabled Subsubmenu</string>
</property>
<addaction name="actionWith_its_own_Stuff"/>
</widget>
<addaction name="actionMore_Disabled_Stuff"/>
<addaction name="menuSubsubmenu"/>
</widget>
<addaction name="actionItem_2"/>
<addaction name="menuSubmenu_2"/>
</widget>
<widget class="QMenu" name="menuShould_NOT_Be_Visible">
<property name="title">
<string>Should NOT Be Visible</string>
</property>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout_Qt"/>
</widget>
<widget class="QMenu" name="menuDynamic_Stuff">
<property name="title">
<string>Dynamic Stuff</string>
</property>
<widget class="QMenu" name="menuAfter_aboutToShow">
<property name="title">
<string>Populated After aboutToShow()</string>
</property>
</widget>
<widget class="QMenu" name="menuOn_Click">
<property name="title">
<string>Click Button to Populate</string>
</property>
</widget>
<widget class="QMenu" name="menuPopulated_by_Timer">
<property name="title">
<string>Populated by Timer</string>
</property>
</widget>
<addaction name="menuOn_Click"/>
<addaction name="menuAfter_aboutToShow"/>
<addaction name="menuPopulated_by_Timer"/>
</widget>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionNew"/>
<addaction name="actionNo_Empty_Spaces_Below"/>
<addaction name="actionQuit"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuStuff"/>
<addaction name="menuDisabled_Stuff"/>
<addaction name="menuShould_NOT_Be_Visible"/>
<addaction name="menuDynamic_Stuff"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionWith_More_Stuff">
<property name="text">
<string>With More Stuff</string>
</property>
</action>
<action name="actionDisabled_Item">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Disabled Item</string>
</property>
</action>
<action name="actionItem">
<property name="text">
<string>Item</string>
</property>
</action>
<action name="actionShould_be_Disabled">
<property name="text">
<string>Should be Disabled</string>
</property>
</action>
<action name="actionShould_be_Disabled_Too">
<property name="text">
<string>Should be Disabled Too</string>
</property>
</action>
<action name="actionMOARH">
<property name="text">
<string>MOAR!!</string>
</property>
</action>
<action name="actionItem_2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Disabled Item</string>
</property>
</action>
<action name="actionMore_Disabled_Stuff">
<property name="text">
<string>More Disabled Stuff</string>
</property>
</action>
<action name="actionWith_its_own_Stuff">
<property name="text">
<string>With its own Disabled Stuff</string>
</property>
</action>
<action name="actionAbout">
<property name="text">
<string>About</string>
</property>
</action>
<action name="actionAbout_Qt">
<property name="text">
<string>About Qt</string>
</property>
</action>
<action name="actionQuit">
<property name="text">
<string>Exit</string>
</property>
</action>
<action name="actionNew">
<property name="text">
<string>New...</string>
</property>
</action>
<action name="actionNo_Empty_Spaces_Below">
<property name="text">
<string>No Empty Spaces Below</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections>
<connection>
<sender>checkBox</sender>
<signal>toggled(bool)</signal>
<receiver>MainWindow</receiver>
<slot>enableStuffMenu(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>62</x>
<y>94</y>
</hint>
<hint type="destinationlabel">
<x>72</x>
<y>73</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>enableStuffMenu(bool)</slot>
</slots>
</ui>
|