PySide6.QtGraphs.QDateTimeAxis

class QDateTimeAxis

QDateTimeAxis 添加了对将日期时间值添加到图表轴的支持。更多

PySide6.QtGraphs.QDateTimeAxis 的继承图

在版本6.8中添加。

概要

属性

方法

信号

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

日期时间轴可用于显示带有刻度标记和网格线的日期时间表示。轴上的日期时间项显示在刻度位置。

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property formatᅟ: str
Access functions:
property maxᅟ: QDateTime

此属性表示轴上的最大值。

这个值可以低于或高于最小值。DateTime 内部存储为 UTC。默认值为 new Date(1980,1,1)

Access functions:
property minᅟ: QDateTime

此属性表示轴上的最小值。

这个值可以低于或高于最大值。DateTime 在内部存储为 UTC。默认值为 new Date(1970,1,1)

Access functions:
property tickCountᅟ: int
Access functions:
__init__([parent=None])
Parameters:

父对象QObject

format()
Return type:

字符串

属性 formatᅟ 的获取器。

formatChanged(format)
Parameters:

format – str

属性 formatᅟ 的通知信号。

max()
Return type:

QDateTime

另请参阅

setMax()

属性 maxᅟ 的获取器。

maxChanged(max)
Parameters:

最大值QDateTime

属性 maxᅟ 的通知信号。

min()
Return type:

QDateTime

另请参阅

setMin()

属性 minᅟ 的获取器。

minChanged(min)
Parameters:

最小值QDateTime

属性 minᅟ 的通知信号。

rangeChanged(min, max)
Parameters:
setFormat(format)
Parameters:

format – str

属性 formatᅟ 的设置器。

setMax(max)
Parameters:

最大值QDateTime

另请参阅

max()

属性 maxᅟ 的设置器。

setMin(min)
Parameters:

最小值QDateTime

另请参阅

min()

属性 minᅟ 的设置器。

setRange(min, max)
Parameters:
setTickCount(count)
Parameters:

count – int

属性 tickCountᅟ 的设置器。

tickCount()
Return type:

整数

属性 tickCountᅟ 的获取器。

tickCountChanged(tick)
Parameters:

tick – 整数

属性 tickCountᅟ 的通知信号。