Qt:Документация 4.3.2/qsizegrip

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

QSizeGrip Class Reference
[модуль QtGui ]

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

 #include <QSizeGrip>

Inherits QWidget.

Открытые функции

  • 201 открытых функций унаследованных от QWidget
  • 29 открытых функций унаследованных от QObject
  • 12 открытых функций унаследованных от QPaintDevice

Защищенные функции

  • 38 защищенных функций унаследованных от QWidget
  • 7 защищенных функций унаследованных от QObject
  • 1 защищенная функция унаследованна от QPaintDevice

Дополнительные унаследованные члены

  • 56 свойства унаследованных от QWidget
  • 1 свойство унаследованное от QObject
  • 19 открытых слотов унаследованных от QWidget
  • 1 открытый слот унаследованный от QObject
  • 1 сигнал унаследованный от QWidget
  • 1 сигнал унаследованный от QObject
  • 4 статических открытых члена унаследованных от QWidget
  • 5 статических открытых члена унаследованных от QObject
  • 1 защищенный слот унаследованный от QWidget

Подробное описание

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.


Файл:Plastique-sizegrip.png 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().


Описание функций-членов

QSizeGrip::QSizeGrip ( QWidget * parent )

Constructs a resize corner as a child widget of the given parent.

QSizeGrip::~QSizeGrip ()

Destroys this size grip.

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

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

Reimplemented from QWidget.

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

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.

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

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.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2