Adds dates and times to a chart's axis. 更多...
import 语句: | import QtCharts 2.15 |
实例化: | QDateTimeAxis |
继承: |
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.
The maximum value on the axis.
When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid.
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.
This signal is emitted when the minimum or maximum value of the axis, specified by min and max ,改变。
The corresponding signal handler is
onRangeChanged()
.