QDateTimeAxis - how to set format of date the same as system has, but without time?
Unsolved
General and Desktop
-
I have QDateTimeAxis, but in order to be consistent I'd like it to have date format the same as any system my application is run on has. Also, I'd like to remove time from it. Is there a way to do it?
-
@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