Skip to content

Class QAccelPlot::DashLine

ClassList > QAccelPlot > DashLine

A line style that renders the curve as a customisable dashed line. More...

  • #include <DashLine.hpp>

Inherits the following classes: QAccelPlot::LineStyle

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1DashLine["QAccelPlot::DashLine"]

  classQAccelPlot_1_1LineStyle["QAccelPlot::LineStyle"]
  classQAccelPlot_1_1LineStyle --> classQAccelPlot_1_1DashLine
  click classQAccelPlot_1_1LineStyle "../classQAccelPlot_1_1LineStyle/" "Open QAccelPlot::LineStyle"

  external_base_classQAccelPlot_1_1LineStyle_1["QObject"]
  external_base_classQAccelPlot_1_1LineStyle_1 --> classQAccelPlot_1_1LineStyle

Public Properties

Type Name
property QList< qreal > pattern
Alternating dash/gap lengths in pixels, e.g. `` [10, 5] for a 10px dash with 5px gap.

Public Properties inherited from QAccelPlot::LineStyle

See QAccelPlot::LineStyle

Type Name
property QML_ANONYMOUSbool showLine
Whether the line should be rendered. Subclasses override to suppress (e.g. NoLine ).

Public Signals

Type Name
signal void patternChanged
Emitted when the pattern property changes.

Public Signals inherited from QAccelPlot::LineStyle

See QAccelPlot::LineStyle

Type Name
signal void styleChanged
Emitted when any style property changes, triggering a curve redraw.

Public Functions

Type Name
DashLine (QObject * parent=nullptr)
Constructs a DashLine with the given__parent .
virtual DashParameters dashParameters () override const
Returns a render-thread-safe snapshot of the dash parameters.
QList< qreal > pattern () const
Returns the current dash pattern.
void setPattern (const QList< qreal > & pattern)
Sets the dash pattern to pattern .

Public Functions inherited from QAccelPlot::LineStyle

See QAccelPlot::LineStyle

Type Name
LineStyle (QObject * parent=nullptr)
Constructs an LineStyle with the given__parent .
virtual DashParameters dashParameters () const
Returns the dash parameters for this style. Default: disabled dash.
virtual bool showLine () const
Returns true if the line should be rendered. Default:true .

Detailed Description

The pattern property accepts a list of alternating dash and gap lengths in pixels, following the same convention as SVG stroke-dasharray.

See also: SolidLine, NoLine, LineStyle

Public Properties Documentation

property pattern

Alternating dash/gap lengths in pixels, e.g. `` [10, 5] for a 10px dash with 5px gap.

QList<qreal> QAccelPlot::DashLine::pattern;


Public Signals Documentation

signal patternChanged

Emitted when the pattern property changes.

void QAccelPlot::DashLine::patternChanged;


Public Functions Documentation

function DashLine

Constructs a DashLine with the given__parent .

explicit QAccelPlot::DashLine::DashLine (
    QObject * parent=nullptr
) 


function dashParameters

Returns a render-thread-safe snapshot of the dash parameters.

virtual DashParameters QAccelPlot::DashLine::dashParameters () override const

Implements QAccelPlot::LineStyle::dashParameters


function pattern

Returns the current dash pattern.

QList< qreal > QAccelPlot::DashLine::pattern () const


function setPattern

Sets the dash pattern to pattern .

void QAccelPlot::DashLine::setPattern (
    const QList< qreal > & pattern
) 



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/linestyles/DashLine.hpp