QRasterWindow Class
큐라스터윈도우는 QWindow 에서 QPainter 를 사용하기 위한 편의 클래스입니다.. ..
헤더: | #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 에서 제공하는 기능에 가상 paintEvent() 함수와 자체적으로 QPainter 를 열 수 있는 기능을 추가합니다. 기본 페인트 엔진은 래스터 엔진이므로 모든 그리기는 CPU에서 이루어집니다. 가속화된 OpenGL 기반 그리기를 수행하려면 QOpenGLWindow 대신 사용하세요.
내부적으로 이 클래스는 QWindow 및 QBackingStore 용 씬 래퍼이며 이러한 클래스를 직접 사용하는 래스터 창 예제와 매우 유사합니다.
QPaintDeviceWindow::paintEvent() 및 QPaintDeviceWindow::update()도 참조하세요 .
멤버 함수 문서
[explicit]
QRasterWindow::QRasterWindow(QWindow *parent = nullptr)
parent 를 사용하여 새 QRasterWindow를 생성합니다.
© 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.