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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QPaintEvent

Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.



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


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

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

Constructs a paint event object with both a paintRegion and a paintRect, both of which represent the area of the widget that needs to be updated.

[править]
bool QPaintEvent::erased () const

Returns true if the paint event region (or rectangle) has been erased with the widget's background; otherwise returns false.

Qt 4 always erases regions that require painting. The exception to this rule is if the widget sets the Qt::WA_OpaquePaintEvent or Qt::WA_NoSystemBackground attributes. If either one of those attributes is set and the window system does not make use of subwidget alpha composition (currently X11 and Windows, but this may change), then the region is not erased.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2