Qt3DRender::QScissorTest Class

class Qt3DRender::QScissorTest

QScissorTest 类会丢弃位于屏幕特定矩形区域之外的片段。更多

头文件: #include <QScissorTest>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: ScissorTest
继承: Qt3DRender::QRenderState
状态:已废弃

属性

公共功能

QScissorTest(Qt3DCore::QNode *parent = nullptr)
int bottom() const
int height() const
int left() const
int width() const

公共插槽

void setBottom(int bottom)
void setHeight(int height)
void setLeft(int left)
void setWidth(int width)

信号

void bottomChanged(int bottom)
void heightChanged(int height)
void leftChanged(int left)
void widthChanged(int width)

详细说明

QScissorTest 类可进行剪刀测试,该测试会丢弃屏幕左侧、底部、宽度和高度属性指定的矩形区域之外的碎片。

属性文档

bottom : int

保持剪刀盒的底部坐标。

访问功能:

int bottom() const
void setBottom(int bottom)

通知信号:

void bottomChanged(int bottom)

height : int

保持剪刀箱的高度。

访问功能:

int height() const
void setHeight(int height)

提示信号:

void heightChanged(int height)

left : int

保存剪刀盒的左坐标。

访问功能:

int left() const
void setLeft(int left)

通知信号:

void leftChanged(int left)

width : int

保持剪刀盒的宽度。

访问功能:

int width() const
void setWidth(int width)

通知信号:

void widthChanged(int width)

成员函数 文档

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

构造函数创建一个新的QScissorTest::QScissorTest 实例,该实例具有指定的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.