Qt SCXML Pinball Example▲
Sélectionnez
&
lt;?xml version=
"1.0"
encoding=
"UTF-8"
?&
gt;
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;MainWindow&
lt;/
class
&
gt;
&
lt;widget class
=
"QWidget"
name=
"MainWindow"
&
gt;
&
lt;property name=
"geometry"
&
gt;
&
lt;rect&
gt;
&
lt;x&
gt;0
&
lt;/
x&
gt;
&
lt;y&
gt;0
&
lt;/
y&
gt;
&
lt;width&
gt;476
&
lt;/
width&
gt;
&
lt;height&
gt;458
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QGridLayout"
name=
"gridLayout"
&
gt;
&
lt;item row=
"0"
column=
"0"
colspan=
"5"
&
gt;
&
lt;layout class
=
"QHBoxLayout"
name=
"horizontalLayout"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"highScoreTextLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;HIGH SCORE:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"highScoreLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;0
&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignRight|
Qt::
AlignTrailing|
Qt::
AlignVCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"scoreTextLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;SCORE:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"scoreLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;0
&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignRight|
Qt::
AlignTrailing|
Qt::
AlignVCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"0"
column=
"5"
rowspan=
"7"
&
gt;
&
lt;layout class
=
"QVBoxLayout"
name=
"verticalLayout"
&
gt;
&
lt;item&
gt;
&
lt;spacer name=
"verticalSpacer"
&
gt;
&
lt;property name=
"orientation"
&
gt;
&
lt;enum
&
gt;Qt::
Vertical&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"sizeHint"
stdset=
"0"
&
gt;
&
lt;size&
gt;
&
lt;width&
gt;1
&
lt;/
width&
gt;
&
lt;height&
gt;98
&
lt;/
height&
gt;
&
lt;/
size&
gt;
&
lt;/
property&
gt;
&
lt;/
spacer&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QToolButton"
name=
"startButton"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Fixed"
vsizetype=
"Minimum"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;^
^
^
S
T
A
R
T
^
^
^&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"1"
column=
"0"
colspan=
"5"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"gameOverLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;255
&
lt;/
red&
gt;
&
lt;green&
gt;0
&
lt;/
green&
gt;
&
lt;blue&
gt;4
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;255
&
lt;/
red&
gt;
&
lt;green&
gt;0
&
lt;/
green&
gt;
&
lt;blue&
gt;4
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;GAME OVER&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"2"
column=
"0"
colspan=
"5"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"jackpotLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;55
&
lt;/
red&
gt;
&
lt;green&
gt;200
&
lt;/
green&
gt;
&
lt;blue&
gt;191
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;55
&
lt;/
red&
gt;
&
lt;green&
gt;200
&
lt;/
green&
gt;
&
lt;blue&
gt;191
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;JACKPOT!&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"3"
column=
"0"
colspan=
"5"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"hurryLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;67
&
lt;/
red&
gt;
&
lt;green&
gt;24
&
lt;/
green&
gt;
&
lt;blue&
gt;97
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;67
&
lt;/
red&
gt;
&
lt;green&
gt;24
&
lt;/
green&
gt;
&
lt;blue&
gt;97
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;HURRY!&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"4"
column=
"0"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"cLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;7
&
lt;/
red&
gt;
&
lt;green&
gt;0
&
lt;/
green&
gt;
&
lt;blue&
gt;222
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;7
&
lt;/
red&
gt;
&
lt;green&
gt;0
&
lt;/
green&
gt;
&
lt;blue&
gt;222
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;C&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"4"
column=
"1"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"rLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;6
&
lt;/
red&
gt;
&
lt;green&
gt;208
&
lt;/
green&
gt;
&
lt;blue&
gt;36
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;6
&
lt;/
red&
gt;
&
lt;green&
gt;208
&
lt;/
green&
gt;
&
lt;blue&
gt;36
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;R&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"4"
column=
"2"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"aLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;238
&
lt;/
red&
gt;
&
lt;green&
gt;17
&
lt;/
green&
gt;
&
lt;blue&
gt;1
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;238
&
lt;/
red&
gt;
&
lt;green&
gt;17
&
lt;/
green&
gt;
&
lt;blue&
gt;1
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;A&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"4"
column=
"3"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"zLabel"
&
gt;
&
lt;property name=
"enabled"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;230
&
lt;/
red&
gt;
&
lt;green&
gt;10
&
lt;/
green&
gt;
&
lt;blue&
gt;230
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;230
&
lt;/
red&
gt;
&
lt;green&
gt;10
&
lt;/
green&
gt;
&
lt;blue&
gt;230
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Z&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"4"
column=
"4"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"yLabel"
&
gt;
&
lt;property name=
"palette"
&
gt;
&
lt;palette&
gt;
&
lt;active&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;239
&
lt;/
red&
gt;
&
lt;green&
gt;224
&
lt;/
green&
gt;
&
lt;blue&
gt;9
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
active&
gt;
&
lt;inactive&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;239
&
lt;/
red&
gt;
&
lt;green&
gt;224
&
lt;/
green&
gt;
&
lt;blue&
gt;9
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
inactive&
gt;
&
lt;disabled&
gt;
&
lt;colorrole role=
"WindowText"
&
gt;
&
lt;brush brushstyle=
"SolidPattern"
&
gt;
&
lt;color alpha=
"255"
&
gt;
&
lt;red&
gt;190
&
lt;/
red&
gt;
&
lt;green&
gt;190
&
lt;/
green&
gt;
&
lt;blue&
gt;190
&
lt;/
blue&
gt;
&
lt;/
color&
gt;
&
lt;/
brush&
gt;
&
lt;/
colorrole&
gt;
&
lt;/
disabled&
gt;
&
lt;/
palette&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"font"
&
gt;
&
lt;font&
gt;
&
lt;pointsize&
gt;20
&
lt;/
pointsize&
gt;
&
lt;weight&
gt;75
&
lt;/
weight&
gt;
&
lt;bold&
gt;true
&
lt;/
bold&
gt;
&
lt;/
font&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Y&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"alignment"
&
gt;
&
lt;set&
gt;Qt::
AlignCenter&
lt;/
set&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"5"
column=
"0"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"cButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;C&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"5"
column=
"1"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"rButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;R&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"5"
column=
"2"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"aButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;A&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"5"
column=
"3"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"zButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Z&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"5"
column=
"4"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"yButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Y&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"6"
column=
"0"
colspan=
"5"
&
gt;
&
lt;widget class
=
"QPushButton"
name=
"ballOutButton"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;BALL OUT&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"7"
column=
"0"
colspan=
"6"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"offStateLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Press START to release the ball.&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"wordWrap"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"8"
column=
"0"
colspan=
"6"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"normalStateLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Try to hit all CRAZY letters. Watch out for
ball and
avoid BALL OUT since the game will end.&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"wordWrap"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"9"
column=
"0"
colspan=
"6"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"hurryStateLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;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.&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"wordWrap"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item row=
"10"
column=
"0"
colspan=
"6"
&
gt;
&
lt;widget class
=
"QLabel"
name=
"jackpotStateLabel"
&
gt;
&
lt;property name=
"sizePolicy"
&
gt;
&
lt;sizepolicy hsizetype=
"Preferred"
vsizetype=
"Fixed"
&
gt;
&
lt;horstretch&
gt;0
&
lt;/
horstretch&
gt;
&
lt;verstretch&
gt;0
&
lt;/
verstretch&
gt;
&
lt;/
sizepolicy&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;You did that!
You have collected JACKPOT!
Congratulations. Now you can continue
game until you BALL OUT.&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"wordWrap"
&
gt;
&
lt;bool
&
gt;true
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;resources/&
gt;
&
lt;connections/&
gt;
&
lt;/
ui&
gt;