<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>mainwindow.ui Example File | Qt SCXML 5.9</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.9</td><td ><a href="qtscxml-index.html">Qt SCXML</a></td><td ><a href="qtscxml-pinball-example.html">Qt SCXML Pinball Example</a></td><td >mainwindow.ui Example File</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">mainwindow.ui Example File</h1> <span class="subtitle">pinball/mainwindow.ui</span> <!-- $$$pinball/mainwindow.ui-description --> <div class="descr"> <a name="details"></a> <pre class="cpp"> <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QWidget" name="MainWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>476</width> <height>458</height> </rect> </property> <property name="windowTitle"> <string>Pinball</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0" colspan="5"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="highScoreTextLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>HIGH SCORE:</string> </property> </widget> </item> <item> <widget class="QLabel" name="highScoreLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>0</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QLabel" name="scoreTextLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>SCORE:</string> </property> </widget> </item> <item> <widget class="QLabel" name="scoreLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>0</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> </layout> </item> <item row="0" column="5" rowspan="7"> <layout class="QVBoxLayout" name="verticalLayout"> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>1</width> <height>98</height> </size> </property> </spacer> </item> <item> <widget class="QToolButton" name="startButton"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>^ ^ ^ S T A R T ^ ^ ^</string> </property> </widget> </item> </layout> </item> <item row="1" column="0" colspan="5"> <widget class="QLabel" name="gameOverLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>0</green> <blue>4</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>0</green> <blue>4</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>GAME OVER</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="2" column="0" colspan="5"> <widget class="QLabel" name="jackpotLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>55</red> <green>200</green> <blue>191</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>55</red> <green>200</green> <blue>191</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>JACKPOT!</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="3" column="0" colspan="5"> <widget class="QLabel" name="hurryLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>67</red> <green>24</green> <blue>97</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>67</red> <green>24</green> <blue>97</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>HURRY!</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="4" column="0"> <widget class="QLabel" name="cLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>7</red> <green>0</green> <blue>222</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>7</red> <green>0</green> <blue>222</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>C</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="4" column="1"> <widget class="QLabel" name="rLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>6</red> <green>208</green> <blue>36</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>6</red> <green>208</green> <blue>36</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>R</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="4" column="2"> <widget class="QLabel" name="aLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>238</red> <green>17</green> <blue>1</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>238</red> <green>17</green> <blue>1</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>A</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="4" column="3"> <widget class="QLabel" name="zLabel"> <property name="enabled"> <bool>true</bool> </property> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>230</red> <green>10</green> <blue>230</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>230</red> <green>10</green> <blue>230</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>Z</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="4" column="4"> <widget class="QLabel" name="yLabel"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>239</red> <green>224</green> <blue>9</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>239</red> <green>224</green> <blue>9</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>190</red> <green>190</green> <blue>190</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>20</pointsize> <weight>75</weight> <bold>true</bold> </font> </property> <property name="text"> <string>Y</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> <item row="5" column="0"> <widget class="QPushButton" name="cButton"> <property name="text"> <string>C</string> </property> </widget> </item> <item row="5" column="1"> <widget class="QPushButton" name="rButton"> <property name="text"> <string>R</string> </property> </widget> </item> <item row="5" column="2"> <widget class="QPushButton" name="aButton"> <property name="text"> <string>A</string> </property> </widget> </item> <item row="5" column="3"> <widget class="QPushButton" name="zButton"> <property name="text"> <string>Z</string> </property> </widget> </item> <item row="5" column="4"> <widget class="QPushButton" name="yButton"> <property name="text"> <string>Y</string> </property> </widget> </item> <item row="6" column="0" colspan="5"> <widget class="QPushButton" name="ballOutButton"> <property name="text"> <string>BALL OUT</string> </property> </widget> </item> <item row="7" column="0" colspan="6"> <widget class="QLabel" name="offStateLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Press START to release the ball.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item row="8" column="0" colspan="6"> <widget class="QLabel" name="normalStateLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Try to hit all CRAZY letters. Watch out for ball and avoid BALL OUT since the game will end.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item row="9" column="0" colspan="6"> <widget class="QLabel" name="hurryStateLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Now you need to hurry. Quickly hit all CRAZY letters again to gather the extra JACKPOT bonus. You have only 5 seconds. Otherwise you will need to start from scratch.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> <item row="10" column="0" colspan="6"> <widget class="QLabel" name="jackpotStateLabel"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>You did that! You have collected JACKPOT! Congratulations. Now you can continue game until you BALL OUT.</string> </property> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </widget> <resources/> <connections/> </ui> </pre> </div> <!-- @@@pinball/mainwindow.ui --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>