QPaintEvent Class ReferenceThe QPaintEvent class contains event parameters for paint events. Далее... #include <QPaintEvent> Унаследован от: 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(). Automatic ClippingPainting is clipped to region() during the processing of a paint event. This clipping is performed by Qt's paint system and is independent of any clipping that may be applied to a QPainter used to draw on the paint device. As a result, the value returned by QPainter::clipRegion() on a newly-constructed QPainter will not reflect the clip region that is used by the paint system. 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 () constReturns the rectangle that needs to be updated. See also region() and QPainter::setClipRect(). const QRegion & QPaintEvent::region () constReturns the region that needs to be updated. See also rect() and QPainter::setClipRegion(). |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |