QBoxLayout Class Reference |
Constant | Value | Description |
---|---|---|
QBoxLayout::LeftToRight | 0 | Horizontal from left to right. |
QBoxLayout::RightToLeft | 1 | Horizontal from right to left. |
QBoxLayout::TopToBottom | 2 | Vertical from top to bottom. |
QBoxLayout::BottomToTop | 3 | Vertical from bottom to top. |
Constructs a new QBoxLayout with direction dir and parent widget parent.
See also direction().
Destroys this box layout.
The layout's widgets aren't destroyed.
Adds layout to the end of the box, with serial stretch factor stretch.
See also insertLayout(), addItem(), and addWidget().
Adds a non-stretchable space (a QSpacerItem) with size size to the end of this box layout. QBoxLayout provides default margin and spacing. This function adds additional space.
See also insertSpacing(), addItem(), and QSpacerItem.
Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end of this box layout.
See also insertStretch(), addItem(), and QSpacerItem.
Limits the perpendicular dimension of the box (e.g. height if the box is LeftToRight) to a minimum of size. Other constraints may increase the limit.
See also addItem().
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
The stretch factor applies only in the direction of the QBoxLayout, and is relative to the other boxes and widgets in this QBoxLayout. Widgets and boxes with higher stretch factors grow more.
If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the QWidget:sizePolicy() of each widget that's involved.
The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.
See also insertWidget(), addItem(), addLayout(), addStretch(), addSpacing(), and addStrut().
Returns the direction of the box. addWidget() and addSpacing() work in this direction; the stretch stretches in this direction.
See also setDirection(), QBoxLayout::Direction, addWidget(), and addSpacing().
Inserts item into this box layout at position index. If index is negative, the item is added at the end.
See also addItem(), insertWidget(), insertLayout(), insertStretch(), and insertSpacing().
Inserts layout at position index, with stretch factor stretch. If index is negative, the layout is added at the end.
layout becomes a child of the box layout.
See also addLayout() and insertItem().
Inserts a non-stretchable space (a QSpacerItem) at position index, with size size. If index is negative the space is added at the end.
The box layout has default margin and spacing. This function adds additional space.
See also addSpacing(), insertItem(), and QSpacerItem.
Inserts a stretchable space (a QSpacerItem) at position index, with zero minimum size and stretch factor stretch. If index is negative the space is added at the end.
See also addStretch(), insertItem(), and QSpacerItem.
Inserts widget at position index, with stretch factor stretch and alignment alignment. If index is negative, the widget is added at the end.
The stretch factor applies only in the direction of the QBoxLayout, and is relative to the other boxes and widgets in this QBoxLayout. Widgets and boxes with higher stretch factors grow more.
If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the QWidget:sizePolicy() of each widget that's involved.
The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.
See also addWidget() and insertItem().
Resets cached information.
Reimplemented from QLayoutItem.
Sets the direction of this layout to direction.
See also direction().
Sets the stretch factor for widget to stretch and returns true if widget is found in this layout (not including child layouts); otherwise returns false.
See also setAlignment().
This is an overloaded member function, provided for convenience.
Sets the stretch factor for the layout layout to stretch and returns true if layout is found in this layout (not including child layouts); otherwise returns false.
Constructs a new QBoxLayout with direction dir and main widget parent. parent may not be 0.
The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels between neighboring children. If spacing is -1 the value of margin is used for spacing.
name is the internal object name.
See also direction().
Constructs a new QBoxLayout called name, with direction dir, and inserts it into parentLayout.
The spacing is the default number of pixels between neighboring children. If spacing is -1, the layout will inherit its parent's spacing().
Constructs a new QBoxLayout called name, with direction dir.
If spacing is -1, the layout will inherit its parent's spacing(); otherwise spacing is used.
You must insert this box into another layout.
Use indexOf(widget) instead.
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.2 | |
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