DateTimeAxis QML Type

The DateTimeAxis element is used for manipulating chart's axes. More...

Import Statement: import QtCharts 2.1
Instantiates: QDateTimeAxis
Inherits:

AbstractAxis

Properties

Signals

Detailed Description

The labels can be configured by setting an appropriate DateTime format. Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored. DateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.

Property Documentation

format : string

The format string that is used when creating label for the axis out of a QDateTime object. Check QDateTime documentation for information on how the string should be defined.


max : datetime

Defines the maximum value on the axis. When setting this property the min is adjusted if necessary, to ensure that the range remains valid.


min : datetime

Defines the minimum value on the axis. When setting this property the max is adjusted if necessary, to ensure that the range remains valid.


tickCount : int

The number of tick marks for the axis.


Signal Documentation

onFormatChanged(string format)

Axis emits signal when format of the axis has changed.


onMaxChanged(datetime max)

Axis emits signal when max of axis has changed.


onMinChanged(datetime min)

Axis emits signal when min of axis has changed.


tickCountChanged(int tickCount)

Axis emits signal when tickCount number on axis have changed.


© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.