Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QSizeGrip Class

TheQSizeGrip class provides a resize handle for resizing top-level windows.More...

Header:#include <QSizeGrip>
Inherits:QWidget

Public Functions

QSizeGrip(QWidget * parent)
~QSizeGrip()

Reimplemented Public Functions

virtual voidsetVisible(bool visible)
virtual QSizesizeHint() const

Reimplemented Protected Functions

virtual boolevent(QEvent * event)
virtual booleventFilter(QObject * o, QEvent * e)
virtual voidhideEvent(QHideEvent * hideEvent)
virtual voidmouseMoveEvent(QMouseEvent * event)
virtual voidmousePressEvent(QMouseEvent * event)
virtual voidmouseReleaseEvent(QMouseEvent * mouseEvent)
virtual voidmoveEvent(QMoveEvent * moveEvent)
virtual voidpaintEvent(QPaintEvent * event)
virtual voidshowEvent(QShowEvent * showEvent)
virtual boolwinEvent(MSG * m, long * result)
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice

Additional Inherited Members

  • 58 properties inherited fromQWidget
  • 1 property inherited fromQObject
  • 19 public slots inherited fromQWidget
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQWidget
  • 1 signal inherited fromQObject
  • 4 static public members inherited fromQWidget
  • 7 static public members inherited fromQObject
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice
  • 1 protected slot inherited fromQWidget

Detailed Description

TheQSizeGrip 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 theQt::SubWindow flag set. Generally, this should be in the lower right-hand corner. Note thatQStatusBar 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.

On some platforms the size grip automatically hides itself when the window is shown full screen or maximised.

Screenshot of a Plastique style size gripA size grip widget at the bottom-right corner of a main window, shown in thePlastique widget style.

TheQSizeGrip class inheritsQWidget and reimplements themousePressEvent() andmouseMoveEvent() functions to feature the resize functionality, and thepaintEvent() function to render the size grip widget.

See alsoQStatusBar andQWidget::windowState().

Member Function Documentation

QSizeGrip::QSizeGrip(QWidget * parent)

Constructs a resize corner as a child widget of the givenparent.

QSizeGrip::~QSizeGrip()

Destroys this size grip.

[virtual protected]bool QSizeGrip::event(QEvent * event)

Reimplemented fromQObject::event().

[virtual protected]bool QSizeGrip::eventFilter(QObject * o,QEvent * e)

Reimplemented fromQObject::eventFilter().

[virtual protected]void QSizeGrip::hideEvent(QHideEvent * hideEvent)

Reimplemented fromQWidget::hideEvent().

[virtual protected]void QSizeGrip::mouseMoveEvent(QMouseEvent * event)

Reimplemented fromQWidget::mouseMoveEvent().

Resizes the top-level widget containing this widget. The mouse move event is passed in theevent parameter.

[virtual protected]void QSizeGrip::mousePressEvent(QMouseEvent * event)

Reimplemented fromQWidget::mousePressEvent().

Receives the mouse press events for the widget, and primes the resize operation. The mouse press event is passed in theevent parameter.

[virtual protected]void QSizeGrip::mouseReleaseEvent(QMouseEvent * mouseEvent)

Reimplemented fromQWidget::mouseReleaseEvent().

[virtual protected]void QSizeGrip::moveEvent(QMoveEvent * moveEvent)

Reimplemented fromQWidget::moveEvent().

[virtual protected]void QSizeGrip::paintEvent(QPaintEvent * event)

Reimplemented fromQWidget::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 theevent parameter.

[virtual]void QSizeGrip::setVisible(bool visible)

Reimplemented fromQWidget::setVisible().

[virtual protected]void QSizeGrip::showEvent(QShowEvent * showEvent)

Reimplemented fromQWidget::showEvent().

[virtual]QSize QSizeGrip::sizeHint() const

Reimplemented fromQWidget::sizeHint().

[virtual protected]bool QSizeGrip::winEvent(MSG * m,long * result)

Reimplemented fromQWidget::winEvent().

© 2016 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 theGNU 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.


[8]ページ先頭

©2009-2025 Movatter.jp