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¶
| 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¶
| 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¶
| 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.
Public Signals Documentation¶
signal patternChanged¶
Emitted when the pattern property changes.
Public Functions Documentation¶
function DashLine¶
Constructs a DashLine with the given__parent .
function dashParameters¶
Returns a render-thread-safe snapshot of the dash parameters.
Implements QAccelPlot::LineStyle::dashParameters
function pattern¶
Returns the current dash pattern.
function setPattern¶
Sets the dash pattern to pattern .
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/linestyles/DashLine.hpp