Skip to content

Class QAccelPlot::Grid

ClassList > QAccelPlot > Grid

Configuration object that controls the appearance of the plot grid. More...

  • #include <Grid.hpp>

Inherits the following classes: QObject

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1Grid["QAccelPlot::Grid"]

  external_base_classQAccelPlot_1_1Grid_1["QObject"]
  external_base_classQAccelPlot_1_1Grid_1 --> classQAccelPlot_1_1Grid

Public Properties

Type Name
property QColor gridColor
Color of the major grid lines. Default: Colors.dark.grid .
property bool gridHorizontalLinesVisible
Whether horizontal major grid lines are visible. Default: true .
property QML_ANONYMOUSqreal gridLineWidth
Width in pixels of the major grid lines. Default: 2.
property bool gridVerticalLinesVisible
Whether vertical major grid lines are visible. Default: true .
property bool gridVisible
Whether major grid lines are visible. Default: true .
property QColor subGridColor
Color of the sub-grid lines. Default: Colors.dark.subGrid .
property bool subGridHorizontalLinesVisible
Whether horizontal sub-grid lines are visible. Default: true .
property qreal subGridLineWidth
Width in pixels of the sub-grid lines. Default: 1.
property bool subGridVerticalLinesVisible
Whether vertical sub-grid lines are visible. Default: true .
property bool subGridVisible
Whether sub-grid lines are visible. Default: true .

Public Signals

Type Name
signal void gridColorChanged
Emitted when the gridColor property changes.
signal void gridHorizontalLinesVisibleChanged
Emitted when the gridHorizontalLinesVisible property changes.
signal void gridLineWidthChanged
Emitted when the gridLineWidth property changes.
signal void gridVerticalLinesVisibleChanged
Emitted when the gridVerticalLinesVisible property changes.
signal void gridVisibleChanged
Emitted when the gridVisible property changes.
signal void subGridColorChanged
Emitted when the subGridColor property changes.
signal void subGridHorizontalLinesVisibleChanged
Emitted when the subGridHorizontalLinesVisible property changes.
signal void subGridLineWidthChanged
Emitted when the subGridLineWidth property changes.
signal void subGridVerticalLinesVisibleChanged
Emitted when the subGridVerticalLinesVisible property changes.
signal void subGridVisibleChanged
Emitted when the subGridVisible property changes.

Public Functions

Type Name
Grid (QObject * parent=nullptr)
Constructs a Grid with the given__parent .
QColor gridColor () const
Returns the major grid line color.
bool gridHorizontalLinesVisible () const
Returns true if horizontal major grid lines are visible.
qreal gridLineWidth () const
Returns the major grid line width.
bool gridVerticalLinesVisible () const
Returns true if vertical major grid lines are visible.
bool gridVisible () const
Returns true if major grid lines are visible.
void setGridColor (const QColor & c)
Sets the major grid line color to c .
void setGridHorizontalLinesVisible (bool on)
Sets horizontal major grid line visibility to on .
void setGridLineWidth (qreal w)
Sets the major grid line width to w .
void setGridVerticalLinesVisible (bool on)
Sets vertical major grid line visibility to on .
void setGridVisible (bool on)
Sets major grid line visibility to on .
void setSubGridColor (const QColor & c)
Sets the sub-grid line color to c .
void setSubGridHorizontalLinesVisible (bool on)
Sets horizontal sub-grid line visibility to on .
void setSubGridLineWidth (qreal w)
Sets the sub-grid line width to w .
void setSubGridVerticalLinesVisible (bool on)
Sets vertical sub-grid line visibility to on .
void setSubGridVisible (bool on)
Sets sub-grid line visibility to on .
QColor subGridColor () const
Returns the sub-grid line color.
bool subGridHorizontalLinesVisible () const
Returns true if horizontal sub-grid lines are visible.
qreal subGridLineWidth () const
Returns the sub-grid line width.
bool subGridVerticalLinesVisible () const
Returns true if vertical sub-grid lines are visible.
bool subGridVisible () const
Returns true if sub-grid lines are visible.

Detailed Description

Exposed as a CONSTANT property on PlotView. Major grid lines are drawn at the same positions as the X/Y axis ticks; sub-grid lines are drawn between them.

See also: PlotView

Public Properties Documentation

property gridColor

Color of the major grid lines. Default: Colors.dark.grid .

QColor QAccelPlot::Grid::gridColor;


property gridHorizontalLinesVisible

Whether horizontal major grid lines are visible. Default: true .

bool QAccelPlot::Grid::gridHorizontalLinesVisible;


property gridLineWidth

Width in pixels of the major grid lines. Default: 2.

QML_ANONYMOUSqreal QAccelPlot::Grid::gridLineWidth;


property gridVerticalLinesVisible

Whether vertical major grid lines are visible. Default: true .

bool QAccelPlot::Grid::gridVerticalLinesVisible;


property gridVisible

Whether major grid lines are visible. Default: true .

bool QAccelPlot::Grid::gridVisible;


property subGridColor

Color of the sub-grid lines. Default: Colors.dark.subGrid .

QColor QAccelPlot::Grid::subGridColor;


property subGridHorizontalLinesVisible

Whether horizontal sub-grid lines are visible. Default: true .

bool QAccelPlot::Grid::subGridHorizontalLinesVisible;


property subGridLineWidth

Width in pixels of the sub-grid lines. Default: 1.

qreal QAccelPlot::Grid::subGridLineWidth;


property subGridVerticalLinesVisible

Whether vertical sub-grid lines are visible. Default: true .

bool QAccelPlot::Grid::subGridVerticalLinesVisible;


property subGridVisible

Whether sub-grid lines are visible. Default: true .

bool QAccelPlot::Grid::subGridVisible;


Public Signals Documentation

signal gridColorChanged

Emitted when the gridColor property changes.

void QAccelPlot::Grid::gridColorChanged;


signal gridHorizontalLinesVisibleChanged

Emitted when the gridHorizontalLinesVisible property changes.

void QAccelPlot::Grid::gridHorizontalLinesVisibleChanged;


signal gridLineWidthChanged

Emitted when the gridLineWidth property changes.

void QAccelPlot::Grid::gridLineWidthChanged;


signal gridVerticalLinesVisibleChanged

Emitted when the gridVerticalLinesVisible property changes.

void QAccelPlot::Grid::gridVerticalLinesVisibleChanged;


signal gridVisibleChanged

Emitted when the gridVisible property changes.

void QAccelPlot::Grid::gridVisibleChanged;


signal subGridColorChanged

Emitted when the subGridColor property changes.

void QAccelPlot::Grid::subGridColorChanged;


signal subGridHorizontalLinesVisibleChanged

Emitted when the subGridHorizontalLinesVisible property changes.

void QAccelPlot::Grid::subGridHorizontalLinesVisibleChanged;


signal subGridLineWidthChanged

Emitted when the subGridLineWidth property changes.

void QAccelPlot::Grid::subGridLineWidthChanged;


signal subGridVerticalLinesVisibleChanged

Emitted when the subGridVerticalLinesVisible property changes.

void QAccelPlot::Grid::subGridVerticalLinesVisibleChanged;


signal subGridVisibleChanged

Emitted when the subGridVisible property changes.

void QAccelPlot::Grid::subGridVisibleChanged;


Public Functions Documentation

function Grid

Constructs a Grid with the given__parent .

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


function gridColor

Returns the major grid line color.

QColor QAccelPlot::Grid::gridColor () const


function gridHorizontalLinesVisible

Returns true if horizontal major grid lines are visible.

bool QAccelPlot::Grid::gridHorizontalLinesVisible () const


function gridLineWidth

Returns the major grid line width.

qreal QAccelPlot::Grid::gridLineWidth () const


function gridVerticalLinesVisible

Returns true if vertical major grid lines are visible.

bool QAccelPlot::Grid::gridVerticalLinesVisible () const


function gridVisible

Returns true if major grid lines are visible.

bool QAccelPlot::Grid::gridVisible () const


function setGridColor

Sets the major grid line color to c .

void QAccelPlot::Grid::setGridColor (
    const QColor & c
) 


function setGridHorizontalLinesVisible

Sets horizontal major grid line visibility to on .

void QAccelPlot::Grid::setGridHorizontalLinesVisible (
    bool on
) 


function setGridLineWidth

Sets the major grid line width to w .

void QAccelPlot::Grid::setGridLineWidth (
    qreal w
) 


function setGridVerticalLinesVisible

Sets vertical major grid line visibility to on .

void QAccelPlot::Grid::setGridVerticalLinesVisible (
    bool on
) 


function setGridVisible

Sets major grid line visibility to on .

void QAccelPlot::Grid::setGridVisible (
    bool on
) 


function setSubGridColor

Sets the sub-grid line color to c .

void QAccelPlot::Grid::setSubGridColor (
    const QColor & c
) 


function setSubGridHorizontalLinesVisible

Sets horizontal sub-grid line visibility to on .

void QAccelPlot::Grid::setSubGridHorizontalLinesVisible (
    bool on
) 


function setSubGridLineWidth

Sets the sub-grid line width to w .

void QAccelPlot::Grid::setSubGridLineWidth (
    qreal w
) 


function setSubGridVerticalLinesVisible

Sets vertical sub-grid line visibility to on .

void QAccelPlot::Grid::setSubGridVerticalLinesVisible (
    bool on
) 


function setSubGridVisible

Sets sub-grid line visibility to on .

void QAccelPlot::Grid::setSubGridVisible (
    bool on
) 


function subGridColor

Returns the sub-grid line color.

QColor QAccelPlot::Grid::subGridColor () const


function subGridHorizontalLinesVisible

Returns true if horizontal sub-grid lines are visible.

bool QAccelPlot::Grid::subGridHorizontalLinesVisible () const


function subGridLineWidth

Returns the sub-grid line width.

qreal QAccelPlot::Grid::subGridLineWidth () const


function subGridVerticalLinesVisible

Returns true if vertical sub-grid lines are visible.

bool QAccelPlot::Grid::subGridVerticalLinesVisible () const


function subGridVisible

Returns true if sub-grid lines are visible.

bool QAccelPlot::Grid::subGridVisible () const



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