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 .
property gridHorizontalLinesVisible¶
Whether horizontal major grid lines are visible. Default: true .
property gridLineWidth¶
Width in pixels of the major grid lines. Default: 2.
property gridVerticalLinesVisible¶
Whether vertical major grid lines are visible. Default: true .
property gridVisible¶
Whether major grid lines are visible. Default: true .
property subGridColor¶
Color of the sub-grid lines. Default: Colors.dark.subGrid .
property subGridHorizontalLinesVisible¶
Whether horizontal sub-grid lines are visible. Default: true .
property subGridLineWidth¶
Width in pixels of the sub-grid lines. Default: 1.
property subGridVerticalLinesVisible¶
Whether vertical sub-grid lines are visible. Default: true .
property subGridVisible¶
Whether sub-grid lines are visible. Default: true .
Public Signals Documentation¶
signal gridColorChanged¶
Emitted when the gridColor property changes.
signal gridHorizontalLinesVisibleChanged¶
Emitted when the gridHorizontalLinesVisible property changes.
signal gridLineWidthChanged¶
Emitted when the gridLineWidth property changes.
signal gridVerticalLinesVisibleChanged¶
Emitted when the gridVerticalLinesVisible property changes.
signal gridVisibleChanged¶
Emitted when the gridVisible property changes.
signal subGridColorChanged¶
Emitted when the subGridColor property changes.
signal subGridHorizontalLinesVisibleChanged¶
Emitted when the subGridHorizontalLinesVisible property changes.
signal subGridLineWidthChanged¶
Emitted when the subGridLineWidth property changes.
signal subGridVerticalLinesVisibleChanged¶
Emitted when the subGridVerticalLinesVisible property changes.
signal subGridVisibleChanged¶
Emitted when the subGridVisible property changes.
Public Functions Documentation¶
function Grid¶
Constructs a Grid with the given__parent .
function gridColor¶
Returns the major grid line color.
function gridHorizontalLinesVisible¶
Returns true if horizontal major grid lines are visible.
function gridLineWidth¶
Returns the major grid line width.
function gridVerticalLinesVisible¶
Returns true if vertical major grid lines are visible.
function gridVisible¶
Returns true if major grid lines are visible.
function setGridColor¶
Sets the major grid line color to c .
function setGridHorizontalLinesVisible¶
Sets horizontal major grid line visibility to on .
function setGridLineWidth¶
Sets the major grid line width to w .
function setGridVerticalLinesVisible¶
Sets vertical major grid line visibility to on .
function setGridVisible¶
Sets major grid line visibility to on .
function setSubGridColor¶
Sets the sub-grid line color to c .
function setSubGridHorizontalLinesVisible¶
Sets horizontal sub-grid line visibility to on .
function setSubGridLineWidth¶
Sets the sub-grid line width to w .
function setSubGridVerticalLinesVisible¶
Sets vertical sub-grid line visibility to on .
function setSubGridVisible¶
Sets sub-grid line visibility to on .
function subGridColor¶
Returns the sub-grid line color.
function subGridHorizontalLinesVisible¶
Returns true if horizontal sub-grid lines are visible.
function subGridLineWidth¶
Returns the sub-grid line width.
function subGridVerticalLinesVisible¶
Returns true if vertical sub-grid lines are visible.
function subGridVisible¶
Returns true if sub-grid lines are visible.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/grid/Grid.hpp