Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_painting_qpainter::SimpleExampleWidget Struct Reference
+ Inheritance diagram for src_gui_painting_qpainter::SimpleExampleWidget:
+ Collaboration diagram for src_gui_painting_qpainter::SimpleExampleWidget:

Public Member Functions

void paintEvent (QPaintEvent *)
 [0]
 
QRect rect ()
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
virtual int devType () const
 
bool paintingActive () const
 
virtual QPaintEnginepaintEngine () const =0
 
int width () const
 
int height () const
 
int widthMM () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
qreal devicePixelRatio () const
 
qreal devicePixelRatioF () const
 
int colorCount () const
 
int depth () const
 

Additional Inherited Members

- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric {
  PdmWidth = 1 , PdmHeight , PdmWidthMM , PdmHeightMM ,
  PdmNumColors , PdmDepth , PdmDpiX , PdmDpiY ,
  PdmPhysicalDpiX , PdmPhysicalDpiY , PdmDevicePixelRatio , PdmDevicePixelRatioScaled
}
 
- Static Public Member Functions inherited from QPaintDevice
static qreal devicePixelRatioFScale ()
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice () noexcept
 
virtual int metric (PaintDeviceMetric metric) const
 
virtual void initPainter (QPainter *painter) const
 
virtual QPaintDeviceredirected (QPoint *offset) const
 
virtual QPaintersharedPainter () const
 
- Protected Attributes inherited from QPaintDevice
ushort painters
 

Detailed Description

Definition at line 13 of file src_gui_painting_qpainter.cpp.

Member Function Documentation

◆ paintEvent()

void src_gui_painting_qpainter::SimpleExampleWidget::paintEvent ( QPaintEvent * )

[0]

Definition at line 25 of file src_gui_painting_qpainter.cpp.

References Qt::AlignCenter, Qt::blue, QPainter::drawText(), painter, rect(), QPainter::setFont(), and QPainter::setPen().

+ Here is the call graph for this function:

◆ rect()

QRect src_gui_painting_qpainter::SimpleExampleWidget::rect ( )

Referenced by paintEvent().

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: