本页内容

Qt3DRender::QLineWidth Class

class Qt3DRender::QLineWidth

指定栅格化线的宽度。更多...

标题: #include <qlinewidth.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
在 QML 中: LineWidth
继承自: Qt3DRender::QRenderState
状态: 已弃用

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

属性

公共函数

bool smooth() const
float value() const

公共槽

void setSmooth(bool enabled)
void setValue(float value)

信号

void smoothChanged(bool enabled)
void valueChanged(float value)

详细说明

属性文档

smooth : bool

该属性控制是否启用平滑线条渲染。

启用后,线条平滑功能将提供抗锯齿的线条渲染。默认值为false 。

访问函数:

bool smooth() const
void setSmooth(bool enabled)

通知信号:

void smoothChanged(bool enabled)

value : float

指定要使用的宽度值。

访问函数:

float value() const
void setValue(float value)

通知信号:

void valueChanged(float value)

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