QRasterWindow Class
QRasterWindow es una clase de conveniencia para utilizar « QPainter » en « QWindow ». Más información...
| Encabezado: | #include <QRasterWindow> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Heredado de: | QPaintDeviceWindow |
Funciones públicas
| QRasterWindow(QWindow *parent = nullptr) |
Descripción detallada
QRasterWindow es una ventana de renderizado ( QWindow ) con una superficie basada en ráster, no OpenGL. Además de la funcionalidad que ofrece QWindow, QRasterWindow añade una función virtual paintEvent() y la posibilidad de abrir una ventana de renderizado acelerada ( QPainter ) sobre sí misma. El motor de dibujo subyacente será el ráster, lo que significa que todo el dibujo se realizará en la CPU. Para realizar un dibujo acelerado basado en OpenGL, utiliza en su lugar QOpenGLWindow.
Internamente, la clase es una sencilla envoltura de QWindow y QBackingStore, y es muy similar al ejemplo de ventana ráster que utiliza estas clases directamente.
Véanse también QPaintDeviceWindow::paintEvent() y QPaintDeviceWindow::update().
Documentación de las funciones de miembro
[explicit] QRasterWindow::QRasterWindow(QWindow *parent = nullptr)
Crea una nueva instancia de `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.