<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Qt 4.6: stylewidget.ui Example File (demos/embedded/styledemo/stylewidget.ui)</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">stylewidget.ui Example File<br /><span class="small-subtitle">demos/embedded/styledemo/stylewidget.ui</span> </h1> <pre> <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>StyleWidget</class> <widget class="QWidget" name="StyleWidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>184</width> <height>245</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0" colspan="2"> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Styles</string> </property> <layout class="QGridLayout" name="gridLayout_2"> <property name="margin"> <number>4</number> </property> <property name="spacing"> <number>4</number> </property> <item row="0" column="0"> <widget class="QPushButton" name="transparentStyle"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Transp.</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>false</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> </widget> </item> <item row="2" column="0"> <widget class="QPushButton" name="blueStyle"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Blue</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>false</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> </widget> </item> <item row="0" column="1"> <widget class="QPushButton" name="khakiStyle"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Khaki</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>false</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> </widget> </item> <item row="2" column="1"> <widget class="QPushButton" name="noStyle"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="MinimumExpanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>None</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="autoExclusive"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </item> <item row="1" column="0" colspan="2"> <spacer name="verticalSpacer_3"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>0</width> <height>0</height> </size> </property> </spacer> </item> <item row="2" column="0" colspan="2"> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="margin"> <number>4</number> </property> <item> <widget class="QLabel" name="label"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>Value:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item> <widget class="QSpinBox" name="spinBox"> <property name="focusPolicy"> <enum>Qt::WheelFocus</enum> </property> <property name="alignment"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> </property> <property name="keyboardTracking"> <bool>false</bool> </property> </widget> </item> </layout> </item> <item row="3" column="0"> <widget class="QScrollBar" name="horizontalScrollBar"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>0</width> <height>24</height> </size> </property> <property name="focusPolicy"> <enum>Qt::TabFocus</enum> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item row="3" column="1"> <widget class="QScrollBar" name="horizontalScrollBar_2"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>0</width> <height>24</height> </size> </property> <property name="focusPolicy"> <enum>Qt::TabFocus</enum> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> <item row="4" column="0"> <widget class="QPushButton" name="pushButton_2"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Show</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="flat"> <bool>false</bool> </property> </widget> </item> <item row="4" column="1"> <widget class="QPushButton" name="pushButton"> <property name="sizePolicy"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Enable</string> </property> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="flat"> <bool>false</bool> </property> </widget> </item> <item row="5" column="0" colspan="2"> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>0</width> <height>0</height> </size> </property> </spacer> </item> <item row="6" column="0"> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> </item> <item row="6" column="1"> <widget class="QPushButton" name="close"> <property name="focusPolicy"> <enum>Qt::StrongFocus</enum> </property> <property name="text"> <string>Close</string> </property> </widget> </item> </layout> </widget> <resources> <include location="StyleDemo.qrc"/> </resources> <connections> <connection> <sender>horizontalScrollBar</sender> <signal>valueChanged(int)</signal> <receiver>horizontalScrollBar_2</receiver> <slot>setValue(int)</slot> <hints> <hint type="sourcelabel"> <x>84</x> <y>147</y> </hint> <hint type="destinationlabel"> <x>166</x> <y>147</y> </hint> </hints> </connection> <connection> <sender>horizontalScrollBar_2</sender> <signal>valueChanged(int)</signal> <receiver>horizontalScrollBar</receiver> <slot>setValue(int)</slot> <hints> <hint type="sourcelabel"> <x>166</x> <y>147</y> </hint> <hint type="destinationlabel"> <x>84</x> <y>147</y> </hint> </hints> </connection> <connection> <sender>pushButton</sender> <signal>clicked(bool)</signal> <receiver>horizontalScrollBar_2</receiver> <slot>setEnabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>166</x> <y>175</y> </hint> <hint type="destinationlabel"> <x>166</x> <y>147</y> </hint> </hints> </connection> <connection> <sender>pushButton_2</sender> <signal>clicked(bool)</signal> <receiver>horizontalScrollBar</receiver> <slot>setVisible(bool)</slot> <hints> <hint type="sourcelabel"> <x>84</x> <y>175</y> </hint> <hint type="destinationlabel"> <x>84</x> <y>147</y> </hint> </hints> </connection> <connection> <sender>spinBox</sender> <signal>valueChanged(int)</signal> <receiver>horizontalScrollBar_2</receiver> <slot>setValue(int)</slot> <hints> <hint type="sourcelabel"> <x>166</x> <y>115</y> </hint> <hint type="destinationlabel"> <x>166</x> <y>147</y> </hint> </hints> </connection> <connection> <sender>horizontalScrollBar_2</sender> <signal>valueChanged(int)</signal> <receiver>spinBox</receiver> <slot>setValue(int)</slot> <hints> <hint type="sourcelabel"> <x>132</x> <y>132</y> </hint> <hint type="destinationlabel"> <x>135</x> <y>110</y> </hint> </hints> </connection> </connections> </ui></pre> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>