📄 qpaintevent.3qt
字号:
.TH QPaintEvent 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQPaintEvent \- Event parameters for paint events.SH SYNOPSIS.br.PP\fC#include <qevent.h>\fR.PPInherits QEvent..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQPaintEvent\fR ( const QRegion & " "paintRegion" ", bool " "erased" " = TRUE ) ".br.ti -1c.BI "\fBQPaintEvent\fR ( const QRect & " "paintRect" ", bool " "erased" " = TRUE ) ".br.ti -1c.BI "const QRect& \fBrect\fR () const".br.ti -1c.BI "const QRegion& \fBregion\fR () const".br.ti -1c.BI "bool \fBerased\fR () const".br.in -1c.SH DESCRIPTIONThe QPaintEvent class contains event parameters for paint events..PPPaint 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..PPThe event handler QWidget::paintEvent() receives paint events..PPSee also QPainter, QWidget::update() and QWidget::repaint()..PPExamples:.(lqtimage/qtimage.cpp grapher/grapher.cpp drawlines/connect.cpp xform/xform.cpp drawdemo/drawdemo.cpp progress/progress.cpp qmag/qmag.cpp splitter/splitter.cpp forever/forever.cpp desktop/desktop.cpp trivial/trivial.cpp picture/picture.cpp.)l.SH MEMBER FUNCTION DOCUMENTATION.SH "QPaintEvent::QPaintEvent ( const QRect & paintRect, bool erased=TRUE = TRUE )"Constructs a paint event object with the rectangle that should be updated..SH "QPaintEvent::QPaintEvent ( const QRegion & paintRegion, bool erased=TRUE = TRUE )"Constructs a paint event object with the region that should be updated..SH "bool QPaintEvent::erased () const"Returns whether the paint event region (or rectangle) has been erased with the widget's background..SH "const QRect & QPaintEvent::rect () const"Returns the rectangle that should be updated..PPSee also region() and QPainter::setClipRect()..PPExamples:.(lqtimage/qtimage.cpp grapher/grapher.cpp progress/progress.cpp splitter/splitter.cpp trivial/trivial.cpp.)l.SH "const QRegion & QPaintEvent::region () const"Returns the region that should be updated..PPSee also rect() and QPainter::setClipRegion()..SH "SEE ALSO".BR http://doc.trolltech.com/qpaintevent.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -