📄 qpaintevent.3qt
字号:
'\" t.TH QPaintEvent 3qt "5 August 2004" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 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.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:.(lsplitter/splitter.cpp qtimage/qtimage.cpp drawdemo/drawdemo.cpp picture/picture.cpp drawlines/connect.cpp progress/progress.cpp qmag/qmag.cpp xform/xform.cpp grapher/grapher.cpp trivial/trivial.cpp desktop/desktop.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:.(lsplitter/splitter.cpp qtimage/qtimage.cpp progress/progress.cpp grapher/grapher.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.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qpaintevent.3qt) and the Qtversion (2.3.8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -