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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] QPaintEvent Class Reference
[модуль QtGui ]

The QPaintEvent class contains event parameters for paint events. Далее...

 #include <QPaintEvent>

Inherits QEvent.

[править] Открытые функции

  • 6 public functions inherited from QEvent

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


[править] Подробное описание

The QPaintEvent class contains event parameters for paint events.

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.

The event contains a region() that needs to be updated, and a rect() that is the bounding rectangle of that region. Both are provided because many widgets can't make much use of region(), and rect() can be much faster than region().boundingRect(). Painting is clipped to region() during the processing of a paint event.

See also QPainter, QWidget::update(), QWidget::repaint(), and QWidget::paintEvent().


[править] Описание функций-членов

[править]
QPaintEvent::QPaintEvent ( const QRegion & paintRegion )

Constructs a paint event object with the region that needs to be updated. The region is specified by paintRegion.

[править]
QPaintEvent::QPaintEvent ( const QRect & paintRect )

Constructs a paint event object with the rectangle that needs to be updated. The region is specified by paintRect.

[править]
const QRect & QPaintEvent::rect () const

Returns the rectangle that needs to be updated.

See also region() and QPainter::setClipRect().

[править]
const QRegion & QPaintEvent::region () const

Returns the region that needs to be updated.

See also rect() and QPainter::setClipRegion().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2