Chart Themes Example▲
Sélectionnez
&
lt;?xml version=
"1.0"
encoding=
"UTF-8"
?&
gt;
&
lt;ui version=
"4.0"
&
gt;
&
lt;class
&
gt;ThemeWidgetForm&
lt;/
class
&
gt;
&
lt;widget class
=
"QWidget"
name=
"ThemeWidgetForm"
&
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;900
&
lt;/
width&
gt;
&
lt;height&
gt;600
&
lt;/
height&
gt;
&
lt;/
rect&
gt;
&
lt;/
property&
gt;
&
lt;layout class
=
"QGridLayout"
name=
"gridLayout"
&
gt;
&
lt;item row=
"0"
column=
"0"
colspan=
"3"
&
gt;
&
lt;layout class
=
"QHBoxLayout"
name=
"horizontalLayout"
&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"themeLabel"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Theme:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QComboBox"
name=
"themeComboBox"
/&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"animatedLabel"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Animation:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QComboBox"
name=
"animatedComboBox"
/&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QLabel"
name=
"legendLabel"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Legend:&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QComboBox"
name=
"legendComboBox"
/&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;widget class
=
"QCheckBox"
name=
"antialiasCheckBox"
&
gt;
&
lt;property name=
"text"
&
gt;
&
lt;string&
gt;Anti-
aliasing&
lt;/
string&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"checked"
&
gt;
&
lt;bool
&
gt;false
&
lt;/
bool
&
gt;
&
lt;/
property&
gt;
&
lt;/
widget&
gt;
&
lt;/
item&
gt;
&
lt;item&
gt;
&
lt;spacer name=
"horizontalSpacer"
&
gt;
&
lt;property name=
"orientation"
&
gt;
&
lt;enum
&
gt;Qt::
Horizontal&
lt;/
enum
&
gt;
&
lt;/
property&
gt;
&
lt;property name=
"sizeHint"
stdset=
"0"
&
gt;
&
lt;size&
gt;
&
lt;width&
gt;40
&
lt;/
width&
gt;
&
lt;height&
gt;20
&
lt;/
height&
gt;
&
lt;/
size&
gt;
&
lt;/
property&
gt;
&
lt;/
spacer&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
item&
gt;
&
lt;/
layout&
gt;
&
lt;/
widget&
gt;
&
lt;resources/&
gt;
&
lt;connections&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;themeComboBox&
lt;/
sender&
gt;
&
lt;signal&
gt;currentIndexChanged(int
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;ThemeWidgetForm&
lt;/
receiver&
gt;
&
lt;slot&
gt;updateUI()&
lt;/
slot&
gt;
&
lt;/
connection&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;antialiasCheckBox&
lt;/
sender&
gt;
&
lt;signal&
gt;toggled(bool
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;ThemeWidgetForm&
lt;/
receiver&
gt;
&
lt;slot&
gt;updateUI()&
lt;/
slot&
gt;
&
lt;/
connection&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;legendComboBox&
lt;/
sender&
gt;
&
lt;signal&
gt;currentIndexChanged(int
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;ThemeWidgetForm&
lt;/
receiver&
gt;
&
lt;slot&
gt;updateUI()&
lt;/
slot&
gt;
&
lt;/
connection&
gt;
&
lt;connection&
gt;
&
lt;sender&
gt;animatedComboBox&
lt;/
sender&
gt;
&
lt;signal&
gt;currentIndexChanged(int
)&
lt;/
signal&
gt;
&
lt;receiver&
gt;ThemeWidgetForm&
lt;/
receiver&
gt;
&
lt;slot&
gt;updateUI()&
lt;/
slot&
gt;
&
lt;/
connection&
gt;
&
lt;/
connections&
gt;
&
lt;slots&
gt;
&
lt;slot&
gt;updateUI()&
lt;/
slot&
gt;
&
lt;/
slots&
gt;
&
lt;/
ui&
gt;