<?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: window.ui Example File (painting/svggenerator/forms/window.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">window.ui Example File<br /><span class="small-subtitle">painting/svggenerator/forms/window.ui</span> </h1> <pre> <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Window</class> <widget class="QWidget" name="Window"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>339</width> <height>353</height> </rect> </property> <property name="windowTitle"> <string>SVG Generator</string> </property> <layout class="QGridLayout" name="gridLayout_2"> <property name="sizeConstraint"> <enum>QLayout::SetFixedSize</enum> </property> <item row="0" column="0"> <spacer name="horizontalSpacer_2"> <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="0" column="1"> <widget class="DisplayWidget" name="displayWidget" native="true"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>200</horstretch> <verstretch>200</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>200</width> <height>200</height> </size> </property> <property name="maximumSize"> <size> <width>200</width> <height>200</height> </size> </property> </widget> </item> <item row="0" column="2"> <spacer name="horizontalSpacer_3"> <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="1" column="0" colspan="3"> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>&amp;Shape:</string> </property> <property name="buddy"> <cstring>shapeComboBox</cstring> </property> </widget> </item> <item row="0" column="1"> <widget class="QComboBox" name="shapeComboBox"> <item> <property name="text"> <string>House</string> </property> </item> <item> <property name="text"> <string>Car</string> </property> </item> </widget> </item> <item row="1" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>&amp;Color:</string> </property> <property name="buddy"> <cstring>colorButton</cstring> </property> </widget> </item> <item row="1" column="1"> <widget class="QToolButton" name="colorButton"> <property name="text"> <string>Choose Color...</string> </property> </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>&amp;Background:</string> </property> <property name="buddy"> <cstring>shapeComboBox_2</cstring> </property> </widget> </item> <item row="2" column="1"> <widget class="QComboBox" name="shapeComboBox_2"> <item> <property name="text"> <string>Sky</string> </property> </item> <item> <property name="text"> <string>Trees</string> </property> </item> <item> <property name="text"> <string>Road</string> </property> </item> </widget> </item> </layout> </item> <item row="2" column="0" colspan="3"> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> <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> <widget class="QToolButton" name="toolButton_2"> <property name="text"> <string>Save &amp;As...</string> </property> </widget> </item> </layout> </item> </layout> </widget> <customwidgets> <customwidget> <class>DisplayWidget</class> <extends>QWidget</extends> <header>displaywidget.h</header> <container>1</container> </customwidget> </customwidgets> <resources/> <connections> <connection> <sender>shapeComboBox</sender> <signal>currentIndexChanged(int)</signal> <receiver>Window</receiver> <slot>updateShape(int)</slot> <hints> <hint type="sourcelabel"> <x>288</x> <y>232</y> </hint> <hint type="destinationlabel"> <x>336</x> <y>234</y> </hint> </hints> </connection> <connection> <sender>colorButton</sender> <signal>clicked()</signal> <receiver>Window</receiver> <slot>updateColor()</slot> <hints> <hint type="sourcelabel"> <x>301</x> <y>262</y> </hint> <hint type="destinationlabel"> <x>337</x> <y>267</y> </hint> </hints> </connection> <connection> <sender>shapeComboBox_2</sender> <signal>currentIndexChanged(int)</signal> <receiver>Window</receiver> <slot>updateBackground(int)</slot> <hints> <hint type="sourcelabel"> <x>306</x> <y>299</y> </hint> <hint type="destinationlabel"> <x>337</x> <y>311</y> </hint> </hints> </connection> <connection> <sender>toolButton_2</sender> <signal>clicked()</signal> <receiver>Window</receiver> <slot>saveSvg()</slot> <hints> <hint type="sourcelabel"> <x>298</x> <y>336</y> </hint> <hint type="destinationlabel"> <x>307</x> <y>348</y> </hint> </hints> </connection> </connections> <slots> <slot>updateBackground(int)</slot> <slot>updateColor()</slot> <slot>updateShape(int)</slot> <slot>saveSvg()</slot> </slots> </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>