QRasterWindow Class
QRasterWindow is a convenience class for using QPainter on a QWindow 更多...
头文件: | #include <QRasterWindow> |
qmake: | QT += gui |
开始支持版本: | Qt 5.4 |
基类: | QPaintDeviceWindow |
公有函数
QRasterWindow(QWindow *parent = Q_NULLPTR) | |
~QRasterWindow() |
- 2 个公有函数继承自 QPaintDeviceWindow
- 80 个公有函数继承自 QWindow
- 14 个公有函数继承自 QPaintDevice
- 32 个公有函数继承自 QObject
- 6 个公有函数继承自 QSurface
其他继承的成员
- 16 个属性继承自 QWindow
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QPaintDeviceWindow
- 22 个公有槽函数继承自 QWindow
- 1 个公有槽函数继承自 QObject
- 18 个信号继承自 QWindow
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 1 个静态公有成员继承自 QWindow
- 10 个静态公有成员继承自 QObject
- 1 个受保护的函数继承自 QPaintDeviceWindow
- 18 个受保护的函数继承自 QWindow
- 1 个受保护的函数继承自 QPaintDevice
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
QRasterWindow is a convenience class for using QPainter on a QWindow
QRasterWindow is a QWindow with a raster-based, non-OpenGL surface. On top of the functionality offered by QWindow, QRasterWindow adds a virtual paintEvent() function and the possibility to open a QPainter on itself. The underlying paint engine will be the raster one, meaning that all drawing will happen on the CPU. For performing accelerated, OpenGL-based drawing, use QOpenGLWindow instead.
Internally the class is thin wrapper for QWindow and QBackingStore and is very similar to the Raster Window Example that uses these classes directly.
参见 QPaintDeviceWindow::paintEvent() and QPaintDeviceWindow::update().
成员函数
QRasterWindow::QRasterWindow(QWindow *parent = Q_NULLPTR)
Constructs a new QRasterWindow with parent.
QRasterWindow::~QRasterWindow()
Destroys the instance of QRasterWindow.