本页内容

Qt3DExtras::QPlaneGeometryView Class

class Qt3DExtras::QPlaneGeometryView

一个正方形平面网格。更多...

标题: #include <Qt3DExtras/QPlaneGeometryView>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
在 QML 中: PlaneGeometryView
继承自: Qt3DCore::QGeometryView
状态: 已弃用

该类已弃用。我们强烈建议不要在新代码中使用它。

属性

公共函数

QPlaneGeometryView(Qt3DCore::QNode *parent = nullptr)
float height() const
QSize meshResolution() const
bool mirrored() const
float width() const

公共槽

void setHeight(float height)
void setMeshResolution(const QSize &resolution)
void setMirrored(bool mirrored)
void setWidth(float width)

信号

void heightChanged(float height)
void meshResolutionChanged(const QSize &meshResolution)
void mirroredChanged(bool mirrored)
void widthChanged(float width)

详细说明

* * * * * * *

属性文档

height : float

保持飞机高度。

访问函数:

float height() const
void setHeight(float height)

通知信号:

void heightChanged(float height)

meshResolution : QSize

保存平面分辨率。该属性的宽度和高度值指定了在相应维度上为网格生成的顶点数量。

访问函数:

QSize meshResolution() const
void setMeshResolution(const QSize &resolution)

通知信号:

void meshResolutionChanged(const QSize &meshResolution)

mirrored : bool

控制平面的 UV 坐标是否应进行垂直翻转。

访问函数:

bool mirrored() const
void setMirrored(bool mirrored)

通知信号:

void mirroredChanged(bool mirrored)

width : float

保存平面宽度。

访问函数:

float width() const
void setWidth(float width)

通知信号:

void widthChanged(float width)

成员函数文档

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

使用parent 创建一个新的QPlaneGeometryView。

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