En esta página

QRasterWindow Class

QRasterWindow es una clase práctica para utilizar QPainter en QWindow. Más...

Cabecera: #include <QRasterWindow>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Hereda: QPaintDeviceWindow

Funciones Públicas

QRasterWindow(QWindow *parent = nullptr)

Descripción detallada

QRasterWindow es una QWindow con una superficie basada en raster, no OpenGL. Además de la funcionalidad ofrecida por QWindow, QRasterWindow añade una función virtual paintEvent() y la posibilidad de abrir un QPainter sobre sí mismo. El motor de pintura subyacente será el raster, lo que significa que todo el dibujo se realizará en la CPU. Para realizar dibujo acelerado, basado en OpenGL, utilice QOpenGLWindow en su lugar.

Internamente la clase es una fina envoltura para QWindow y QBackingStore y es muy similar al Ejemplo de Ventana Raster que utiliza estas clases directamente.

Véase también QPaintDeviceWindow::paintEvent() y QPaintDeviceWindow::update().

Documentación de las funciones miembro

[explicit] QRasterWindow::QRasterWindow(QWindow *parent = nullptr)

Construye una nueva QRasterWindow con parent.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.