QViewport Class

class Qt3DRender::QViewport

Qt3D 씬의 뷰포트입니다. 더 보기...

Header: #include <QViewport>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: Viewport
상속합니다: Qt3DRender::QFrameGraphNode
상태: Deprecated

속성

공용 기능

QViewport(Qt3DCore::QNode *parent = nullptr)
float gamma() const
QRectF normalizedRect() const

공용 슬롯

void setGamma(float gamma)
void setNormalizedRect(const QRectF &normalizedRect)

신호

void gammaChanged(float gamma)
void normalizedRectChanged(const QRectF &normalizedRect)

상세 설명

Qt3DRender::QViewport 는 Qt3D가 렌더링하는 렌더링 표면의 어느 부분을 지정합니다. 뷰포트 외부 영역은 그대로 유지됩니다. 또한 감마와 같이 해당 뷰포트의 렌더링에 대한 전역 파라미터를 제어합니다.

프로퍼티 문서

gamma : float

뷰포트의 감마 계수를 지정합니다. 기본값은 2.2로 대부분의 화면에서 적절한 결과를 제공합니다.

기능에 액세스합니다:

float gamma() const
void setGamma(float gamma)

알림 신호:

void gammaChanged(float gamma)

normalizedRect : QRectF

뷰포트의 정규화된 직사각형을 지정합니다. 즉, 뷰포트 직사각형이 렌더링 서피스 크기를 기준으로 지정됩니다. 전체 표면 크기의 뷰포트는 기본값인 [0.0, 0.0, 1.0, 1.0]으로 지정됩니다.

기능에 액세스합니다:

QRectF normalizedRect() const
void setNormalizedRect(const QRectF &normalizedRect)

알림 신호:

void normalizedRectChanged(const QRectF &normalizedRect)

멤버 함수 문서

[explicit] QViewport::QViewport(Qt3DCore::QNode *parent = nullptr)

주어진 parent 으로 QViewport를 구축합니다.

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