QSizeGrip¶
Detailed Description¶
This widget works like the standard Windows resize handle. In the X11 version this resize handle generally works differently from the one provided by the system if the X11 window manager does not support necessary modern post-ICCCM specifications.
Put this widget anywhere in a widget tree and the user can use it to resize the top-level window or any widget with the
SubWindow
flag set. Generally, this should be in the lower right-hand corner.Note that
QStatusBar
already uses this widget, so if you have a status bar (e.g., you are usingQMainWindow
), then you don’t need to use this widget explicitly. The same goes forQDialog
, for which you can just callsetSizeGripEnabled()
.On some platforms the size grip automatically hides itself when the window is shown full screen or maximised.
A size grip widget at the bottom-right corner of a main window, shown in the Fusion widget style .
The
QSizeGrip
class inheritsQWidget
and reimplements themousePressEvent()
andmouseMoveEvent()
functions to feature the resize functionality, and thepaintEvent()
function to render the size grip widget.See also
- class PySide2.QtWidgets.QSizeGrip(parent)¶
- param parent:
Constructs a resize corner as a child widget of the given
parent
.
© 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.