Qt3DRender::QLineWidth Class | Qt 3D | Qt 6.12.0
Description: Specifies the width of rasterized lines.
Keywords: class

- Qt 6.12
- Qt 3D
- C++ Classes
- Qt3DRender (Deprecated)
- QLineWidth
- Qt 6.12.0 Reference Documentation

# Qt3DRender::QLineWidth Class

class Qt3DRender::QLineWidth

Specifies the width of rasterized lines. More...

Header: | `#include <qlinewidth.h>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS 3drender)` `target_link_libraries(mytarget PRIVATE Qt6::3drender)`
qmake: | `QT += 3drender`
In QML: | LineWidth
Inherits: | Qt3DRender::QRenderState
Status: | Deprecated

This class is deprecated. We strongly advise against using it in new code.

- List of all members, including inherited members

## Properties

- smooth : bool
- value : float

## Public Functions

bool | smooth() const
float | value() const

## Public Slots

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

## Signals

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

## Detailed Description

## Property Documentation

### smooth : bool

This property holds whether smooth line rendering is enabled.

When enabled, line smoothing provides antialiased line rendering. The default value is `false`.

Access functions:

bool | smooth() const
void | setSmooth(bool enabled)

Notifier signal:

void | smoothChanged(bool enabled)

### value : float

Specifies the width value to be used.

Access functions:

float | value() const
void | setValue(float value)

Notifier signal:

void | valueChanged(float value)