Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 4936

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?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">
<!-- qstackedlayout.cpp -->
<head>
  <title>Qt 4.6: QStackedLayout Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QStackedLayout"></a>
<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">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QStackedLayout Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QStackedLayout class provides a stack of widgets where only one widget is visible at a time. <a href="#details">More...</a></p>
<pre> #include &lt;QStackedLayout&gt;</pre><p>Inherits <a href="qlayout.html">QLayout</a>.</p>
<ul>
<li><a href="qstackedlayout-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#StackingMode-enum">StackingMode</a></b> { StackOne, StackAll }</td></tr>
</table>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li><div class="fn"><b><a href="qstackedlayout.html#count-prop">count</a></b> : const int</div></li>
<li><div class="fn"><b><a href="qstackedlayout.html#currentIndex-prop">currentIndex</a></b> : int</div></li>
<li><div class="fn"><b><a href="qstackedlayout.html#stackingMode-prop">stackingMode</a></b> : StackingMode</div></li>
</ul>
<ul>
<li><div bar="2" class="fn"></div>2 properties inherited from <a href="qlayout.html#properties">QLayout</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#QStackedLayout">QStackedLayout</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#QStackedLayout-2">QStackedLayout</a></b> ( QWidget * <i>parent</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#QStackedLayout-3">QStackedLayout</a></b> ( QLayout * <i>parentLayout</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#dtor.QStackedLayout">~QStackedLayout</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#addWidget">addWidget</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#currentIndex-prop">currentIndex</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#currentWidget">currentWidget</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#insertWidget">insertWidget</a></b> ( int <i>index</i>, QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#stackingMode-prop">setStackingMode</a></b> ( StackingMode <i>stackingMode</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">StackingMode </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#stackingMode-prop">stackingMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#widget">widget</a></b> ( int <i>index</i> ) const</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#addItem">addItem</a></b> ( QLayoutItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#count-prop">count</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem * </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#itemAt">itemAt</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#minimumSize">minimumSize</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#setGeometry">setGeometry</a></b> ( const QRect &amp; <i>rect</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#sizeHint">sizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QLayoutItem * </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#takeAt">takeAt</a></b> ( int <i>index</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>35 public functions inherited from <a href="qlayout.html#public-functions">QLayout</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div bar="2" class="fn"></div>17 public functions inherited from <a href="qlayoutitem.html#public-functions">QLayoutItem</a></li>
</ul>
<hr />
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#currentIndex-prop">setCurrentIndex</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a></b> ( QWidget * <i>widget</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<hr />
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#currentChanged">currentChanged</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#widgetRemoved">widgetRemoved</a></b> ( int <i>index</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 static public member inherited from <a href="qlayout.html#static-public-members">QLayout</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>4 protected functions inherited from <a href="qlayout.html#protected-functions">QLayout</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.</p>
<p>QStackedLayout can be used to create a user interface similar to the one provided by <a href="qtabwidget.html">QTabWidget</a>. There is also a convenience <a href="qstackedwidget.html">QStackedWidget</a> class built on top of QStackedLayout.</p>
<p>A QStackedLayout can be populated with a number of child widgets (&quot;pages&quot;). For example:</p>
<pre>     QWidget *firstPageWidget = new QWidget;
     QWidget *secondPageWidget = new QWidget;
     QWidget *thirdPageWidget = new QWidget;

     QStackedLayout *stackedLayout = new QStackedLayout;
     stackedLayout-&gt;addWidget(firstPageWidget);
     stackedLayout-&gt;addWidget(secondPageWidget);
     stackedLayout-&gt;addWidget(thirdPageWidget);


     QVBoxLayout *mainLayout = new QVBoxLayout;
     mainLayout-&gt;addLayout(stackedLayout);
     setLayout(mainLayout);</pre>
<p>QStackedLayout provides no intrinsic means for the user to switch page. This is typically done through a <a href="qcombobox.html">QComboBox</a> or a <a href="qlistwidget.html">QListWidget</a> that stores the titles of the QStackedLayout's pages. For example:</p>
<pre>     QComboBox *pageComboBox = new QComboBox;
     pageComboBox-&gt;addItem(tr(&quot;Page 1&quot;));
     pageComboBox-&gt;addItem(tr(&quot;Page 2&quot;));
     pageComboBox-&gt;addItem(tr(&quot;Page 3&quot;));
     connect(pageComboBox, SIGNAL(activated(int)),
             stackedLayout, SLOT(setCurrentIndex(int)));</pre>
<p>When populating a layout, the widgets are added to an internal list. The <a href="qlayout.html#indexOf">indexOf</a>() function returns the index of a widget in that list. The widgets can either be added to the end of the list using the <a href="qstackedlayout.html#addWidget">addWidget</a>() function, or inserted at a given index using the <a href="qstackedlayout.html#insertWidget">insertWidget</a>() function. The <a href="qlayout.html#removeWidget">removeWidget</a>() function removes the widget at the given index from the layout. The number of widgets contained in the layout, can be obtained using the <a href="qstackedlayout.html#count-prop">count</a>() function.</p>
<p>The <a href="qstackedlayout.html#widget">widget</a>() function returns the widget at a given index position. The index of the widget that is shown on screen is given by <a href="qstackedlayout.html#currentIndex-prop">currentIndex</a>() and can be changed using <a href="qstackedlayout.html#currentIndex-prop">setCurrentIndex</a>(). In a similar manner, the currently shown widget can be retrieved using the <a href="qstackedlayout.html#currentWidget">currentWidget</a>() function, and altered using the <a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a>() function.</p>
<p>Whenever the current widget in the layout changes or a widget is removed from the layout, the <a href="qstackedlayout.html#currentChanged">currentChanged</a>() and <a href="qstackedlayout.html#widgetRemoved">widgetRemoved</a>() signals are emitted respectively.</p>
<p>See also <a href="qstackedwidget.html">QStackedWidget</a> and <a href="qtabwidget.html">QTabWidget</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<a name="//apple_ref/cpp/tag/QStackedLayout/StackingMode"></a>
<a name="//apple_ref/cpp/econst/QStackedLayout/StackOne"></a>
<a name="//apple_ref/cpp/econst/QStackedLayout/StackAll"></a>
<h3 class="fn"><a name="StackingMode-enum"></a>enum QStackedLayout::StackingMode</h3>
<p>This enum specifies how the layout handles its child widgets regarding their visibility.</p>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QStackedLayout::StackOne</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Only the current widget is visible. This is the default.</td></tr>
<tr><td valign="top"><tt>QStackedLayout::StackAll</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">All widgets are visible. The current widget is merely raised.</td></tr>
</table></p>
<p>This enum was introduced in Qt 4.4.</p>
<hr />
<h2>Property Documentation</h2>
<a name="//apple_ref/cpp/instm/QStackedLayout/count"></a>
<h3 class="fn"><a name="count-prop"></a>count : const int</h3>
<p>This property holds the number of widgets contained in the layout.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b>count</b> () const</td></tr>
</table>
<p>See also <a href="qstackedlayout.html#currentIndex-prop">currentIndex</a>() and <a href="qstackedlayout.html#widget">widget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/currentIndex"></a>
<a name="//apple_ref/cpp/instm/QStackedLayout/setCurrentIndex"></a>
<a name="//apple_ref/cpp/instm/QStackedLayout/currentChanged"></a>
<h3 class="fn"><a name="currentIndex-prop"></a>currentIndex : int</h3>
<p>This property holds the index position of the widget that is visible.</p>
<p>The current index is -1 if there is no current widget.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>currentIndex</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setCurrentIndex</b> ( int <i>index</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qstackedlayout.html#currentChanged">currentChanged</a></b> ( int <i>index</i> )</td></tr>
</table>
<p>See also <a href="qstackedlayout.html#currentWidget">currentWidget</a>() and <a href="qlayout.html#indexOf">indexOf</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/stackingMode"></a>
<a name="//apple_ref/cpp/instm/QStackedLayout/setStackingMode"></a>
<h3 class="fn"><a name="stackingMode-prop"></a>stackingMode : <a href="qstackedlayout.html#StackingMode-enum">StackingMode</a></h3>
<p>This property determines the way visibility of child widgets are handled.</p>
<p>The default value is <a href="qstackedlayout.html#StackingMode-enum">StackOne</a>. Setting the property to <a href="qstackedlayout.html#StackingMode-enum">StackAll</a> allows you to make use of the layout for overlay widgets that do additional drawing on top of other widgets, for example, graphical editors.</p>
<p>This property was introduced in Qt 4.4.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">StackingMode </td><td class="memItemRight" valign="bottom"><b>stackingMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setStackingMode</b> ( StackingMode <i>stackingMode</i> )</td></tr>
</table>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QStackedLayout/QStackedLayout"></a>
<h3 class="fn"><a name="QStackedLayout"></a>QStackedLayout::QStackedLayout ()</h3>
<p>Constructs a <a href="qstackedlayout.html">QStackedLayout</a> with no parent.</p>
<p>This <a href="qstackedlayout.html">QStackedLayout</a> must be installed on a widget later on to become effective.</p>
<p>See also <a href="qstackedlayout.html#addWidget">addWidget</a>() and <a href="qstackedlayout.html#insertWidget">insertWidget</a>().</p>
<h3 class="fn"><a name="QStackedLayout-2"></a>QStackedLayout::QStackedLayout ( <a href="qwidget.html">QWidget</a> * <i>parent</i> )</h3>
<p>Constructs a new <a href="qstackedlayout.html">QStackedLayout</a> with the given <i>parent</i>.</p>
<p>This layout will install itself on the <i>parent</i> widget and manage the geometry of its children.</p>
<h3 class="fn"><a name="QStackedLayout-3"></a>QStackedLayout::QStackedLayout ( <a href="qlayout.html">QLayout</a> * <i>parentLayout</i> )</h3>
<p>Constructs a new <a href="qstackedlayout.html">QStackedLayout</a> and inserts it into the given <i>parentLayout</i>.</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/~QStackedLayout"></a>
<h3 class="fn"><a name="dtor.QStackedLayout"></a>QStackedLayout::~QStackedLayout ()</h3>
<p>Destroys this <a href="qstackedlayout.html">QStackedLayout</a>. Note that the layout's widgets are <i>not</i> destroyed.</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/addItem"></a>
<h3 class="fn"><a name="addItem"></a>void QStackedLayout::addItem ( <a href="qlayoutitem.html">QLayoutItem</a> * <i>item</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayout.html#addItem">QLayout::addItem</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/addWidget"></a>
<h3 class="fn"><a name="addWidget"></a>int QStackedLayout::addWidget ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
<p>Adds the given <i>widget</i> to the end of this layout and returns the index position of the <i>widget</i>.</p>
<p>If the <a href="qstackedlayout.html">QStackedLayout</a> is empty before this function is called, the given <i>widget</i> becomes the current widget.</p>
<p>See also <a href="qstackedlayout.html#insertWidget">insertWidget</a>(), <a href="qlayout.html#removeWidget">removeWidget</a>(), and <a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/currentChanged"></a>
<h3 class="fn"><a name="currentChanged"></a>void QStackedLayout::currentChanged ( int <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the current widget in the layout changes. The <i>index</i> specifies the index of the new current widget, or -1 if there isn't a new one (for example, if there are no widgets in the <a href="qstackedlayout.html">QStackedLayout</a>)</p>
<p>See also <a href="qstackedlayout.html#currentWidget">currentWidget</a>() and <a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/currentWidget"></a>
<h3 class="fn"><a name="currentWidget"></a><a href="qwidget.html">QWidget</a> * QStackedLayout::currentWidget () const</h3>
<p>Returns the current widget, or 0 if there are no widgets in this layout.</p>
<p>See also <a href="qstackedlayout.html#currentIndex-prop">currentIndex</a>() and <a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/insertWidget"></a>
<h3 class="fn"><a name="insertWidget"></a>int QStackedLayout::insertWidget ( int <i>index</i>, <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
<p>Inserts the given <i>widget</i> at the given <i>index</i> in this <a href="qstackedlayout.html">QStackedLayout</a>. If <i>index</i> is out of range, the widget is appended (in which case it is the actual index of the <i>widget</i> that is returned).</p>
<p>If the <a href="qstackedlayout.html">QStackedLayout</a> is empty before this function is called, the given <i>widget</i> becomes the current widget.</p>
<p>Inserting a new widget at an index less than or equal to the current index will increment the current index, but keep the current widget.</p>
<p>See also <a href="qstackedlayout.html#addWidget">addWidget</a>(), <a href="qlayout.html#removeWidget">removeWidget</a>(), and <a href="qstackedlayout.html#setCurrentWidget">setCurrentWidget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/itemAt"></a>
<h3 class="fn"><a name="itemAt"></a><a href="qlayoutitem.html">QLayoutItem</a> * QStackedLayout::itemAt ( int <i>index</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayout.html#itemAt">QLayout::itemAt</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/minimumSize"></a>
<h3 class="fn"><a name="minimumSize"></a><a href="qsize.html">QSize</a> QStackedLayout::minimumSize () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayoutitem.html#minimumSize">QLayoutItem::minimumSize</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/setCurrentWidget"></a>
<h3 class="fn"><a name="setCurrentWidget"></a>void QStackedLayout::setCurrentWidget ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Sets the current widget to be the specified <i>widget</i>. The new current widget must already be contained in this stacked layout.</p>
<p>See also <a href="qstackedlayout.html#currentIndex-prop">setCurrentIndex</a>() and <a href="qstackedlayout.html#currentWidget">currentWidget</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/setGeometry"></a>
<h3 class="fn"><a name="setGeometry"></a>void QStackedLayout::setGeometry ( const <a href="qrect.html">QRect</a> &amp; <i>rect</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayoutitem.html#setGeometry">QLayoutItem::setGeometry</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/sizeHint"></a>
<h3 class="fn"><a name="sizeHint"></a><a href="qsize.html">QSize</a> QStackedLayout::sizeHint () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayoutitem.html#sizeHint">QLayoutItem::sizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/takeAt"></a>
<h3 class="fn"><a name="takeAt"></a><a href="qlayoutitem.html">QLayoutItem</a> * QStackedLayout::takeAt ( int <i>index</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qlayout.html#takeAt">QLayout::takeAt</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/widget"></a>
<h3 class="fn"><a name="widget"></a><a href="qwidget.html">QWidget</a> * QStackedLayout::widget ( int <i>index</i> ) const</h3>
<p>Returns the widget at the given <i>index</i>, or 0 if there is no widget at the given position.</p>
<p>See also <a href="qstackedlayout.html#currentWidget">currentWidget</a>() and <a href="qlayout.html#indexOf">indexOf</a>().</p>
<a name="//apple_ref/cpp/instm/QStackedLayout/widgetRemoved"></a>
<h3 class="fn"><a name="widgetRemoved"></a>void QStackedLayout::widgetRemoved ( int <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted whenever a widget is removed from the layout. The widget's <i>index</i> is passed as parameter.</p>
<p>See also <a href="qlayout.html#removeWidget">removeWidget</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 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>