DateTimeAxis QML Type

Adds dates and times to a chart's axis. 更多...

import 语句: import QtCharts 2.3
实例化: QDateTimeAxis
继承: AbstractAxis

特性

方法

详细描述

The DateTimeAxis type can be set up to show an axis line with tick marks, grid lines, and shades. The axis labels display dates and times and can be configured by setting an appropriate DateTime format.

注意: Any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.

特性文档编制

format : string

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

max : datetime

The maximum value on the axis.

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

min : datetime

The minimum value on the axis.

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

tickCount : int

The number of tick marks on the axis.


方法文档编制

rangeChanged ( datetime min , datetime max )

This signal is emitted when the minimum or maximum value of the axis, specified by min and max ,改变。

The corresponding signal handler is onRangeChanged() .