class QDateTimeAxis

The QDateTimeAxis adds support for DateTime values to be added to a graph’s axis. More

Inheritance diagram of PySide6.QtGraphs.QDateTimeAxis

Added in version 6.8.

Synopsis

Properties

Methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

A DateTime Axis can be used to display DateTime representations with tick marks and grid lines. The DateTime items on the axis are displayed at the position of the ticks.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

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

This property holds The maximum value on the axis.

This value can be lower or higher than the minimum. The DateTime is stored as UTC internally. The default value is new Date(1980,1,1)

Access functions:
property minᅟ: QDateTime

This property holds The minimum value on the axis.

This value can be lower or higher than the maximum. The DateTime is stored as UTC internally. The default value is new Date(1970,1,1)

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

parentQObject

format()
Return type:

str

Getter of property formatᅟ .

formatChanged(format)
Parameters:

format – str

Notification signal of property formatᅟ .

max()
Return type:

QDateTime

See also

setMax()

Getter of property maxᅟ .

maxChanged(max)
Parameters:

maxQDateTime

Notification signal of property maxᅟ .

min()
Return type:

QDateTime

See also

setMin()

Getter of property minᅟ .

minChanged(min)
Parameters:

minQDateTime

Notification signal of property minᅟ .

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

format – str

Setter of property formatᅟ .

setMax(max)
Parameters:

maxQDateTime

See also

max()

Setter of property maxᅟ .

setMin(min)
Parameters:

minQDateTime

See also

min()

Setter of property minᅟ .

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

count – int

Setter of property tickCountᅟ .

tickCount()
Return type:

int

Getter of property tickCountᅟ .

tickCountChanged(tick)
Parameters:

tick – int

Notification signal of property tickCountᅟ .