QStackedLayout Class Reference |
Constant | Value | Description |
---|---|---|
QStackedLayout::StackOne | 0 | Only the current widget is visible. This is the default. |
QStackedLayout::StackAll | 1 | All widgets are visible. The current widget is merely raised. |
This enum was introduced in Qt 4.4.
This property holds the number of widgets contained in the layout.
Access functions:
See also currentIndex() and widget().
This property holds the index position of the widget that is visible.
The current index is -1 if there is no current widget.
Access functions:
See also currentWidget() and indexOf().
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.
Access functions:
Constructs a QStackedLayout with no parent.
This QStackedLayout must be installed on a widget later on to become effective.
See also addWidget() and insertWidget().
Constructs a new QStackedLayout with the given parent.
This layout will install itself on the parent widget and manage the geometry of its children.
Constructs a new QStackedLayout and inserts it into the given parentLayout.
Destroys this QStackedLayout. Note that the layout's widgets are not destroyed.
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().
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().
Returns the current widget, or 0 if there are no widgets in this layout.
See also currentIndex() and setCurrentWidget().
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().
Sets the current widget to be the specified widget. The new current widget must already be contained in this stacked layout.
See also setCurrentIndex() and currentWidget().
Returns the widget at the given index, or 0 if there is no widget at the given position.
See also currentWidget() and indexOf().
This signal is emitted whenever a widget is removed from the layout. The widget's index is passed as parameter.
See also removeWidget().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com