QPaintEvent Class Reference


The QPaintEvent class contains event parameters for paint events. More...

#include <qevent.h>

Inherits QEvent.

List of all member functions.

Public Members


Detailed Description

The QPaintEvent class contains event parameters for paint events.

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

The event handler QWidget::paintEvent() receives paint events.

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

Examples: life/life.cpp forever/forever.cpp desktop/desktop.cpp connect/connect.cpp tooltip/tooltip.cpp drawdemo/drawdemo.cpp xform/xform.cpp hello/hello.cpp picture/showpic.cpp progress/progress.cpp aclock/aclock.cpp showimg/showimg.cpp qmag/qmag.cpp biff/biff.cpp


Member Function Documentation

QPaintEvent::QPaintEvent ( const QRect & paintRect )

Constructs a paint event object with the rectangle that should be updated.

const QRect & QPaintEvent::rect () const

Returns the rectangle that should be updated.

Examples: life/life.cpp progress/progress.cpp showimg/showimg.cpp


This file is part of the Qt toolkit, copyright © 1995-97 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 19:08, 1997/10/09 for Qt version 1.31 by the webmaster at Troll Tech