QSpacerItem¶
The
QSpacerItem
class provides blank space in a layout. More…
Synopsis¶
Functions¶
def
changeSize
(w, h[, hData=QSizePolicy.Minimum[, vData=QSizePolicy.Minimum]])def
sizePolicy
()
Detailed Description¶
Normally, you don’t need to use this class directly. Qt’s built-in layout managers provide the following functions for manipulating empty space in layouts:
Class
Functions
addSpacing()
,addStretch()
,insertSpacing()
,insertStretch()
setRowMinimumHeight()
,setRowStretch()
,setColumnMinimumWidth()
,setColumnStretch()
See also
- class PySide2.QtWidgets.QSpacerItem(w, h[, hData=QSizePolicy.Minimum[, vData=QSizePolicy.Minimum]])¶
Constructs a spacer item with preferred width
w
, preferred heighth
, horizontal size policyhPolicy
and vertical size policyvPolicy
.The default values provide a gap that is able to stretch if nothing else wants the space.
- PySide2.QtWidgets.QSpacerItem.changeSize(w, h[, hData=QSizePolicy.Minimum[, vData=QSizePolicy.Minimum]])¶
-
Changes this spacer item to have preferred width
w
, preferred heighth
, horizontal size policyhPolicy
and vertical size policyvPolicy
.The default values provide a gap that is able to stretch if nothing else wants the space.
Note that if is called after the spacer item has been added to a layout, it is necessary to invalidate the layout in order for the spacer item’s new size to take effect.
See also
invalidate()
- PySide2.QtWidgets.QSpacerItem.sizePolicy()¶
- Return type:
Returns the size policy of this item.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.