QRasterWindow Class

QRasterWindow はQWindowQPainter を使うための便利なクラスです

ヘッダー #include <QRasterWindow>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承: QPaintDeviceWindow

パブリック関数

QRasterWindow(QWindow *parent = nullptr)

詳細な説明

QRasterWindow はラスターベースの非 OpenGL サーフェスを持つQWindow です。QWindow によって提供される機能の上に、QRasterWindow は仮想のpaintEvent() 関数と、QPainter を自分自身で開く可能性を追加します。基礎となる描画エンジンはラスターエンジンであり、すべての描画はCPU上で行われます。加速されたOpenGLベースの描画を行うには、代わりにQOpenGLWindow

内部的には、このクラスはQWindowQBackingStore の薄いラッパーであり、これらのクラスを直接使用するRaster Window Exampleと非常によく似ています。

QPaintDeviceWindow::paintEvent() およびQPaintDeviceWindow::update()も参照してください

メンバ関数ドキュメント

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

新しい QRasterWindow をparent で構築します。

© 2025 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.