The QDateTimeAxis adds support for DateTime values to be added to a graph's axis. 更多...
| 頭: |
#include <QDateTimeAxis>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
|
| qmake: |
QT += graphs
|
| 在 QML: | DateTimeAxis |
| 繼承: | QAbstractAxis |
|
|
| QString | labelFormat () const |
| QDateTime | max () const |
| QDateTime | min () const |
| void | setLabelFormat (const QString & format ) |
| void | setMax (const QDateTime & max ) |
| void | setMin (const QDateTime & min ) |
| void | setSubTickCount (int newSubTickCount ) |
| void | setTickInterval (qreal newTickInterval ) |
| int | subTickCount () const |
| qreal | tickInterval () const |
| void | labelFormatChanged (const QString & format ) |
| void | maxChanged (const QDateTime & max ) |
| void | minChanged (const QDateTime & min ) |
| void | subTickCountChanged () |
| void | tickIntervalChanged () |
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.
This property holds the format of the DateTime labels on the axis. The format property allows to signify the visual representation of the DateTime object, in days, months, and years. The default value is dd-MMMM-yy.
訪問函數:
| QString | labelFormat () const |
| void | setLabelFormat (const QString & format ) |
通知程序信號:
| void | labelFormatChanged (const QString & format ) |
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)
訪問函數:
| QDateTime | max () const |
| void | setMax (const QDateTime & max ) |
通知程序信號:
| void | maxChanged (const QDateTime & max ) |
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)
訪問函數:
| QDateTime | min () const |
| void | setMin (const QDateTime & min ) |
通知程序信號:
| void | minChanged (const QDateTime & min ) |
This property holds the number of subticks on the axis. This indicates how many subticks are drawn between major lines on the graph. Labels are not drawn for subticks. The default value is 0.
訪問函數:
| int | subTickCount () const |
| void | setSubTickCount (int newSubTickCount ) |
通知程序信號:
| void | subTickCountChanged () |
This property holds the interval between dynamically placed tick marks and labels. The default value is 0, which means that intervals are automatically calculated based on the min and max range.
訪問函數:
| qreal | tickInterval () const |
| void | setTickInterval (qreal newTickInterval ) |
通知程序信號:
| void | tickIntervalChanged () |