The QSizeGrip class provides a resize handle for resizing top-level windows. More...
#include <QSizeGrip>
Inherits: QWidget.
QSizeGrip ( QWidget * parent ) | |
~QSizeGrip () |
virtual void | setVisible ( bool visible ) |
virtual QSize | sizeHint () const |
virtual bool | event ( QEvent * event ) |
virtual bool | eventFilter ( QObject * o, QEvent * e ) |
virtual void | hideEvent ( QHideEvent * hideEvent ) |
virtual void | mouseMoveEvent ( QMouseEvent * event ) |
virtual void | mousePressEvent ( QMouseEvent * event ) |
virtual void | mouseReleaseEvent ( QMouseEvent * mouseEvent ) |
virtual void | moveEvent ( QMoveEvent * moveEvent ) |
virtual void | paintEvent ( QPaintEvent * event ) |
virtual void | showEvent ( QShowEvent * showEvent ) |
virtual bool | winEvent ( MSG * m, long * result ) |
The QSizeGrip class provides a resize handle for resizing top-level windows.
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 Qt::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 using QMainWindow), then you don't need to use this widget explicitly.
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 Plastique widget style. |
The QSizeGrip class inherits QWidget and reimplements the mousePressEvent() and mouseMoveEvent() functions to feature the resize functionality, and the paintEvent() function to render the size grip widget.
See also QStatusBar and QWidget::windowState().
Constructs a resize corner as a child widget of the given parent.
Destroys this size grip.
Reimplemented from QObject::event().
Reimplemented from QObject::eventFilter().
Reimplemented from QWidget::hideEvent().
Reimplemented from QWidget::mouseMoveEvent().
Resizes the top-level widget containing this widget. The mouse move event is passed in the event parameter.
Reimplemented from QWidget::mousePressEvent().
Receives the mouse press events for the widget, and primes the resize operation. The mouse press event is passed in the event parameter.
Reimplemented from QWidget::mouseReleaseEvent().
Reimplemented from QWidget::moveEvent().
Reimplemented from QWidget::paintEvent().
Paints the resize grip.
Resize grips are usually rendered as small diagonal textured lines in the lower-right corner. The paint event is passed in the event parameter.
Reimplemented from QWidget::setVisible().
Reimplemented from QWidget::showEvent().
Reimplemented from QWidget::sizeHint().
Reimplemented from QWidget::winEvent().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.