Qt3DRender::QScissorTest Class
class Qt3DRender::QScissorTestQScissorTest 类会过滤掉位于屏幕特定矩形区域之外的碎片。更多内容...
| 标题: | #include <qscissortest.h> |
| 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) |
属性文档
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
© 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.