QDateTimeAxis - how to set format of date the same as system has, but without time?
Unsolved
General and Desktop
-
wrote on 21 Oct 2021, 13:25 last edited by
-
wrote on 21 Oct 2021, 13:33 last edited by
@CuriousPan said in QDateTimeAxis - how to set format of date the same as system has, but without time?:
QDateTimeAxis
Should you feel brave and actually spend 30 seconds looking into the documentation, like I did, you would notice that there is a setFormat() method: https://doc.qt.io/qt-5/qdatetimeaxis.html#format-prop
And that it takes well known format strings from QDateTime: https://doc.qt.io/qt-5/qdatetime.html#toString
1/2