Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtGui.QStackedLayout Class Reference

The QStackedLayout class provides a stack of widgets where only one widget is visible at a time. More...

Inheritance diagram for QtGui.QStackedLayout:
Collaboration diagram for QtGui.QStackedLayout:

Public Types

enum  StackingMode { StackAll = 1, StackOne = 0 }
  More...
 
- Public Types inherited from QtGui.QLayout
enum  SizeConstraint {
  SetDefaultConstraint = 0, SetFixedSize = 3, SetMaximumSize = 4, SetMinAndMaxSize = 5,
  SetMinimumSize = 2, SetNoConstraint = 1
}
  More...
 

Public Member Functions

 QStackedLayout ()
  More...
 
 QStackedLayout (QWidget parent)
  More...
 
 QStackedLayout (QLayout parentLayout)
  More...
 
override void CreateProxy ()
 
override void AddItem (IQLayoutItem item)
  More...
 
new int AddWidget (QWidget w)
  More...
 
new int InsertWidget (int index, QWidget w)
  More...
 
override IQLayoutItem ItemAt (int index)
  More...
 
override IQLayoutItem TakeAt (int index)
  More...
 
new QWidget Widget (int index)
  More...
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QLayout
 QLayout ()
  More...
 
 QLayout (QWidget parent)
  More...
 
new bool Activate ()
  More...
 
new void AddWidget (QWidget w)
  More...
 
new void GetContentsMargins (ref int left, ref int top, ref int right, ref int bottom)
  More...
 
virtual int IndexOf (QWidget widget)
  More...
 
virtual void Invalidate ()
  More...
 
new void RemoveItem (IQLayoutItem item)
  More...
 
new void RemoveWidget (QWidget w)
  More...
 
new bool SetAlignment (QWidget w, Qt.AlignmentFlag alignment)
  More...
 
new bool SetAlignment (QLayout l, Qt.AlignmentFlag alignment)
  More...
 
new void SetContentsMargins (int left, int top, int right, int bottom)
  More...
 
new void SetEnabled (bool enable)
  More...
 
new int TotalHeightForWidth (int w)
 
new void Update ()
  More...
 
new void Dispose ()
 
virtual int HeightForWidth (int w)
  More...
 
virtual int MinimumHeightForWidth (int w)
  More...
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
  More...
 
new bool BlockSignals (bool b)
  More...
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
new void DeleteLater ()
  More...
 
new bool Disconnect (QObject receiver, string member=null)
  More...
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
  More...
 
new void DumpObjectInfo ()
  More...
 
new void DumpObjectTree ()
  More...
 
virtual bool OnEvent (QEvent e)
  More...
 
virtual bool EventFilter (QObject watched, QEvent @event)
  More...
 
new bool Inherits (string classname)
  More...
 
new void InstallEventFilter (QObject filterObj)
  More...
 
new void KillTimer (int id)
  More...
 
new object Property (string name)
  More...
 
new void RemoveEventFilter (QObject obj)
  More...
 
new bool SetProperty (string name, object value)
  More...
 
new void SetUserData (uint id, QObjectUserData data)
 
new int StartTimer (int interval)
  More...
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QLayout
static QSize ClosestAcceptableSize (QWidget w, QSize s)
  More...
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
  More...
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
  More...
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
  More...
 
static string Tr (string s, string c=null)
  More...
 
static string Tr (string s, string c, int n)
  More...
 
static string TrUtf8 (string s, string c=null)
  More...
 
static string TrUtf8 (string s, string c, int n)
  More...
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream stream, QSizeF size)
  More...
 
static QDataStream Write (QDataStream stream, QPoint point)
  More...
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream stream, QLineF line)
  More...
 
static QDataStream Write (QDataStream stream, QPointF point)
  More...
 
static QDataStream Write (QDataStream @out, QChar chr)
  More...
 
static QDataStream Write (QDataStream @out, QByteArray ba)
  More...
 
static QDataStream Write (QDataStream stream, QEasingCurve easing)
  More...
 
static QDataStream Write (QDataStream stream, QRectF rectangle)
  More...
 
static QDataStream Write (QDataStream @out, QDateTime dateTime)
  More...
 
static QDataStream Write (QDataStream @out, QUrl url)
  More...
 
static QDataStream Write (QDataStream @out, QTime time)
  More...
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream @out, QBitArray ba)
  More...
 
static QDataStream Write (QDataStream s, QUuid id)
  More...
 
static QDataStream Write (QDataStream stream, QLine line)
  More...
 
static QDataStream Write (QDataStream @out, QDate date)
  More...
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
  More...
 
static QDataStream Write (QDataStream stream, QRect rectangle)
  More...
 
static QDataStream Write (QDataStream stream, QSize size)
  More...
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
  More...
 
static QDataStream Read (QDataStream @in, QChar chr)
  More...
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream stream, QRect rectangle)
  More...
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream @in, QDate date)
  More...
 
static QDataStream Read (QDataStream @in, QUrl url)
  More...
 
static QDataStream Read (QDataStream s, QUuid id)
  More...
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream stream, QLineF line)
  More...
 
static QDataStream Read (QDataStream stream, QRectF rectangle)
  More...
 
static QDataStream Read (QDataStream stream, QPointF point)
  More...
 
static QDataStream Read (QDataStream stream, QLine line)
  More...
 
static QDataStream Read (QDataStream @in, QBitArray ba)
  More...
 
static QDataStream Read (QDataStream stream, QSize size)
  More...
 
static QDataStream Read (QDataStream @in, QDateTime dateTime)
  More...
 
static QDataStream Read (QDataStream @in, QTime time)
  More...
 
static QDataStream Read (QDataStream stream, QPoint point)
  More...
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
  More...
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream @in, QByteArray ba)
  More...
 
static QDataStream Read (QDataStream stream, QSizeF size)
  More...
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
  More...
 
static double QAcos (double v)
  More...
 
static void QAddPostRoutine (System.Action ptr)
  More...
 
static double QAsin (double v)
  More...
 
static double QAtan (double v)
  More...
 
static double QAtan2 (double x, double y)
  More...
 
static void QBadAlloc ()
 
static int QCeil (double v)
  More...
 
static ushort QChecksum (string s, uint len)
  More...
 
static QByteArray QCompress (QByteArray data, int compressionLevel=-1)
  More...
 
static QByteArray QCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
  More...
 
static double QCos (double v)
  More...
 
static double QExp (double v)
  More...
 
static double QFabs (double v)
 
static double QFastCos (double x)
 
static double QFastSin (double x)
 
static string QFlagLocation (string method)
 
static int QFloor (double v)
  More...
 
static bool QFuzzyCompare (double p1, double p2)
  More...
 
static bool QFuzzyCompare (float p1, float p2)
  More...
 
static bool QFuzzyIsNull (double d)
 
static bool QFuzzyIsNull (float f)
 
static uint QHash (QBitArray key)
  More...
 
static uint QHash (QChar key)
  More...
 
static uint QHash (QStringRef key)
 
static uint QHash (QUrl url)
  More...
 
static uint QHash (QPersistentModelIndex index)
 
static uint QHash (QByteArray key)
  More...
 
static uint QHash (QModelIndex index)
 
static uint QHash (uint key)
  More...
 
static uint QHash (char key)
  More...
 
static uint QHash (byte key)
  More...
 
static uint QHash (short key)
  More...
 
static uint QHash (NativeLong key)
  More...
 
static uint QHash (ushort key)
  More...
 
static uint QHash (long key)
  More...
 
static uint QHash (ulong key)
  More...
 
static uint QHash (int key)
  More...
 
static uint QHash (string key)
  More...
 
static uint QHash (NativeULong key)
  More...
 
static Qt.ActionQtMsgTypeString QInstallMsgHandler (Qt.ActionQtMsgTypeString handler)
  More...
 
static int QIntCast (float f)
 
static int QIntCast (double f)
 
static bool QIsFinite (double d)
 
static bool QIsFinite (float f)
 
static bool QIsInf (float f)
 
static bool QIsInf (double d)
 
static bool QIsNaN (float f)
 
static bool QIsNaN (double d)
 
static bool QIsNull (float f)
 
static bool QIsNull (double d)
 
static double QLn (double v)
  More...
 
static double QPow (double x, double y)
  More...
 
static void QRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
  More...
 
static void QRemovePostRoutine (System.Action arg1)
 
static int QRound (double d)
  More...
 
static long QRound64 (double d)
  More...
 
static double QSin (double v)
  More...
 
static double QSqrt (double v)
  More...
 
static bool QStringComparisonHelper (QStringRef s1, string s2)
 
static double QTan (double v)
  More...
 
static QByteArray QUncompress (QByteArray data)
  More...
 
static QByteArray QUncompress (Pointer< byte > data, int nbytes)
  More...
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
  More...
 
static bool Qputenv (string varName, QByteArray value)
  More...
 
static void Qsrand (uint seed)
  More...
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
  More...
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
  More...
 
static Pointer< sbyte > Qstrdup (string src)
  More...
 
static int Qstricmp (string str1, string str2)
  More...
 
static uint Qstrlen (string str)
  More...
 
static int Qstrncmp (string str1, string str2, uint len)
  More...
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
  More...
 
static int Qstrnicmp (string str1, string str2, uint len)
  More...
 
static uint Qstrnlen (string str, uint maxlen)
  More...
 

Protected Member Functions

 QStackedLayout (System.Type dummy)
 
new void OnCurrentChanged (int index)
  More...
 
new void OnWidgetRemoved (int index)
  More...
 
- Protected Member Functions inherited from QtGui.QLayout
 QLayout (System.Type dummy)
 
new void AddChildLayout (QLayout l)
  More...
 
new void AddChildWidget (QWidget w)
  More...
 
new QRect AlignmentRect (QRect r)
  More...
 
override void OnChildEvent (QChildEvent e)
  More...
 
new void OnWidgetEvent (QEvent arg1)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent @event)
  More...
 
virtual void ConnectNotify (string signal)
  More...
 
virtual void OnCustomEvent (QEvent @event)
  More...
 
new void OnDestroyed (QObject obj=null)
  More...
 
virtual void DisconnectNotify (string signal)
  More...
 
new int Receivers (string signal)
  More...
 
virtual void OnTimerEvent (QTimerEvent @event)
  More...
 

Properties

Slot< System.Int32 > WidgetRemoved
  More...
 
Slot< System.Int32 > CurrentChanged
  More...
 
QWidget CurrentWidget [get, set]
  More...
 
override QRect Geometry [get, set]
  More...
 
override int Count [get]
 
override QSize MinimumSize [get]
  More...
 
override QSize SizeHint [get]
  More...
 
new int CurrentIndex [get, set]
  More...
 
new StackingMode stackingMode [get, set]
  More...
 
static new QMetaObject StaticMetaObject [get]
 
new IQStackedLayoutSignals Emit [get]
 
- Properties inherited from QtGui.QLayout
virtual EventHandler
< QEventArgs< QEvent > > 
WidgetEvent
 
Qt.AlignmentFlag Alignment [get, set]
  More...
 
QMargins ContentsMargins [get, set]
  More...
 
virtual QRect Geometry [get, set]
  More...
 
QWidget MenuBar [get, set]
  More...
 
virtual Qt.Orientation ExpandingDirections [get]
  More...
 
virtual bool IsEmpty [get]
  More...
 
virtual QLayout Layout [get]
  More...
 
virtual QSize MaximumSize [get]
  More...
 
virtual QSize MinimumSize [get]
  More...
 
QSizePolicy.ControlType ControlTypes [get]
  More...
 
virtual bool HasHeightForWidth [get]
  More...
 
virtual QSize SizeHint [get]
  More...
 
virtual QSpacerItem SpacerItem [get]
  More...
 
virtual QWidget Widget [get]
  More...
 
QRect ContentsRect [get]
  More...
 
virtual int Count [get]
  More...
 
bool IsEnabled [get]
  More...
 
QWidget ParentWidget [get]
  More...
 
QSize TotalMaximumSize [get]
 
QSize TotalMinimumSize [get]
 
QSize TotalSizeHint [get]
 
new int Margin [get, set]
  More...
 
new int Spacing [get, set]
  More...
 
new SizeConstraint sizeConstraint [get, set]
  More...
 
static new QMetaObject StaticMetaObject [get]
 
new Qt.AlignmentFlag Align [get, set]
 
new IQLayoutSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
  More...
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
  More...
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
  More...
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
  More...
 
Slot< QObjectDestroyedObj
  More...
 
Slot Destroyed
  More...
 
QObject Parent [get, set]
  More...
 
System.Collections.Generic.List
< QObject
Children [get]
  More...
 
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames [get]
  More...
 
bool IsWidgetType [get]
  More...
 
static uint RegisterUserData [get]
 
QObject Sender [get]
  More...
 
int SenderSignalIndex [get]
  More...
 
bool SignalsBlocked [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
  More...
 
static new QMetaObject StaticMetaObject [get]
  More...
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 
- Properties inherited from QtCore.Qt
static string QAppName [get]
 
static double QInf [get]
 
static double QQNaN [get]
 
static double QSNaN [get]
 
static bool QSharedBuild [get]
 
static string QVersion [get]
  More...
 
static int Qrand [get]
  More...
 
- Properties inherited from QtGui.IQLayoutItem
Qt.AlignmentFlag Alignment [get, set]
  More...
 
QRect Geometry [get, set]
  More...
 
QSizePolicy.ControlType ControlTypes [get]
  More...
 
Qt.Orientation ExpandingDirections [get]
  More...
 
System.Boolean HasHeightForWidth [get]
  More...
 
System.Boolean IsEmpty [get]
  More...
 
QLayout Layout [get]
  More...
 
QSize MaximumSize [get]
  More...
 
QSize MinimumSize [get]
  More...
 
QSize SizeHint [get]
  More...
 
QSpacerItem SpacerItem [get]
  More...
 
QWidget Widget [get]
  More...
 

Additional Inherited Members

- Static Public Attributes inherited from QtCore.Qt
</para > *< para > Creating QM
files suitable for use with
this[SmokeMethod("qtTrId(const
char*, int)")] static strin 
QtTrId )(string id, int n=-1)
 
- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.

QStackedLayout can be used to create a user interface similar to the one provided by QTabWidget. There is also a convenience QStackedWidget class built on top of QStackedLayout.

A QStackedLayout can be populated with a number of child widgets ("pages"). For example:

QWidget *firstPageWidget = new QWidget;

QWidget *secondPageWidget = new QWidget;

QWidget *thirdPageWidget = new QWidget;

QStackedLayout *stackedLayout = new QStackedLayout;

stackedLayout->addWidget(firstPageWidget);

stackedLayout->addWidget(secondPageWidget);

stackedLayout->addWidget(thirdPageWidget);

QVBoxLayout *mainLayout = new QVBoxLayout;

mainLayout->addLayout(stackedLayout);

setLayout(mainLayout);

QStackedLayout provides no intrinsic means for the user to switch page. This is typically done through a QComboBox or a QListWidget that stores the titles of the QStackedLayout's pages. For example:

QComboBox *pageComboBox = new QComboBox;

pageComboBox->addItem(tr("Page 1"));

pageComboBox->addItem(tr("Page 2"));

pageComboBox->addItem(tr("Page 3"));

connect(pageComboBox, SIGNAL(activated(int)),

stackedLayout, SLOT(setCurrentIndex(int)));

When populating a layout, the widgets are added to an internal list. The indexOf() function returns the index of a widget in that list. The widgets can either be added to the end of the list using the addWidget() function, or inserted at a given index using the insertWidget() function. The removeWidget() function removes the widget at the given index from the layout. The number of widgets contained in the layout, can be obtained using the count() function.

The widget() function returns the widget at a given index position. The index of the widget that is shown on screen is given by currentIndex() and can be changed using setCurrentIndex(). In a similar manner, the currently shown widget can be retrieved using the currentWidget() function, and altered using the setCurrentWidget() function.

Whenever the current widget in the layout changes or a widget is removed from the layout, the currentChanged() and widgetRemoved() signals are emitted respectively.

See also QStackedWidget and QTabWidget.

Member Enumeration Documentation

This enum specifies how the layout handles its child widgets regarding their visibility.

This enum was introduced or modified in Qt 4.4.

Enumerator
StackAll 

All widgets are visible. The current widget is merely raised.

StackOne 

Only the current widget is visible. This is the default.

Constructor & Destructor Documentation

QtGui.QStackedLayout.QStackedLayout ( System.Type  dummy)
protected
QtGui.QStackedLayout.QStackedLayout ( )

Constructs a QStackedLayout with no parent.

This QStackedLayout must be installed on a widget later on to become effective.

See also addWidget() and insertWidget().

Here is the call graph for this function:

QtGui.QStackedLayout.QStackedLayout ( QWidget  parent)

Constructs a new QStackedLayout with the given parent.

This layout will install itself on the parent widget and manage the geometry of its children.

Here is the call graph for this function:

QtGui.QStackedLayout.QStackedLayout ( QLayout  parentLayout)

Constructs a new QStackedLayout and inserts it into the given parentLayout.

Here is the call graph for this function:

Member Function Documentation

override void QtGui.QStackedLayout.AddItem ( IQLayoutItem  item)
virtual

Reimplemented from QLayout::addItem().

Implements QtGui.QLayout.

new int QtGui.QStackedLayout.AddWidget ( QWidget  w)

Adds the given widget to the end of this layout and returns the index position of the widget.

If the QStackedLayout is empty before this function is called, the given widget becomes the current widget.

See also insertWidget(), removeWidget(), and setCurrentWidget().

override void QtGui.QStackedLayout.CreateProxy ( )
virtual

Reimplemented from QtGui.QLayout.

Here is the caller graph for this function:

new void QtGui.QStackedLayout.Dispose ( )
new int QtGui.QStackedLayout.InsertWidget ( int  index,
QWidget  w 
)

Inserts the given widget at the given index in this QStackedLayout. If index is out of range, the widget is appended (in which case it is the actual index of the widget that is returned).

If the QStackedLayout is empty before this function is called, the given widget becomes the current widget.

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.

See also addWidget(), removeWidget(), and setCurrentWidget().

override IQLayoutItem QtGui.QStackedLayout.ItemAt ( int  index)
virtual

Reimplemented from QLayout::itemAt().

Implements QtGui.QLayout.

new void QtGui.QStackedLayout.OnCurrentChanged ( int  index)
protected

This signal is emitted whenever the current widget in the layout changes. The index 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 QStackedLayout)

See also currentWidget() and setCurrentWidget().

new void QtGui.QStackedLayout.OnWidgetRemoved ( int  index)
protected

This signal is emitted whenever a widget is removed from the layout. The widget's index is passed as parameter.

See also removeWidget().

override IQLayoutItem QtGui.QStackedLayout.TakeAt ( int  index)
virtual

Reimplemented from QLayout::takeAt().

Implements QtGui.QLayout.

static string QtGui.QStackedLayout.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QStackedLayout.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QStackedLayout.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QStackedLayout.TrUtf8 ( string  s,
string  c,
int  n 
)
static
new QWidget QtGui.QStackedLayout.Widget ( int  index)

Returns the widget at the given index, or 0 if there is no widget at the given position.

See also currentWidget() and indexOf().

Property Documentation

override int QtGui.QStackedLayout.Count
get
Slot<System.Int32> QtGui.QStackedLayout.CurrentChanged
addremove

This signal is emitted whenever the current widget in the layout changes. The index 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 QStackedLayout)

See also currentWidget() and setCurrentWidget().

new int QtGui.QStackedLayout.CurrentIndex
getset

This property holds the index position of the widget that is visible.

The current index is -1 if there is no current widget.

QWidget QtGui.QStackedLayout.CurrentWidget
getset

Returns the current widget, or 0 if there are no widgets in this layout.

Sets the current widget to be the specified widget. The new current widget must already be contained in this stacked layout.

new IQStackedLayoutSignals QtGui.QStackedLayout.Emit
getprotected
override QRect QtGui.QStackedLayout.Geometry
getset

Reimplemented from QLayoutItem::setGeometry().

override QSize QtGui.QStackedLayout.MinimumSize
get

Reimplemented from QLayoutItem::minimumSize().

Reimplemented from QLayoutItem::sizeHint().

new StackingMode QtGui.QStackedLayout.stackingMode
getset

This property determines the way visibility of child widgets are handled.

The default value is StackOne. Setting the property to StackAll allows you to make use of the layout for overlay widgets that do additional drawing on top of other widgets, for example, graphical editors.

This property was introduced in Qt 4.4.

new QMetaObject QtGui.QStackedLayout.StaticMetaObject
staticget
Slot<System.Int32> QtGui.QStackedLayout.WidgetRemoved
addremove

This signal is emitted whenever a widget is removed from the layout. The widget's index is passed as parameter.

See also removeWidget().