在本页

Qt3DRender::QLineWidth Class

class Qt3DRender::QLineWidth

指定光栅化线条的宽度。更多

头文件: #include <QLineWidth>
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.