QRasterWindow 類

QRasterWindow is a convenience class for using QPainter QWindow . 更多...

頭: #include <QRasterWindow>
qmake: QT += gui
Since: Qt 5.4
繼承: QPaintDeviceWindow

公共函數

QRasterWindow (QWindow * parent = nullptr)
virtual ~QRasterWindow ()

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

QRasterWindow is a convenience class for using QPainter QWindow .

QRasterWindow 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 代替。

Internally the class is thin wrapper for QWindow and QBackingStore and is very similar to the 光柵窗口範例 that uses these classes directly.

另請參閱 QPaintDeviceWindow::paintEvent () 和 QPaintDeviceWindow::update ().

成員函數文檔編製

QRasterWindow:: QRasterWindow ( QWindow * parent = nullptr)

構造新的 QRasterWindow with parent .

[虛擬] QRasterWindow:: ~QRasterWindow ()

Destroys the instance of QRasterWindow. The destructor is virtual.