Dynamically Adjusting tickCount for DateTimeAxis in QML: Is it Possible?
-
wrote on 20 Aug 2023, 10:20 last edited by
In QML, is there a way to change the tickCount of a DateTimeAxis at runtime?
-
wrote on 21 Aug 2023, 01:01 last edited by
The documentation doesn't say anything suggesting that the property is read-only. Have you tried assigning to it?
-
The documentation doesn't say anything suggesting that the property is read-only. Have you tried assigning to it?
wrote on 21 Aug 2023, 20:35 last edited by@jeremy_k my conclusion is that once you assign a value to tickCount either during the initial phase or if you don't assign it and DateTimeAxis uses the default, then if you try to modify it during program execution, it always keeps the value you initially assigned. It's a pity because if it could be modified at runtime, it would be possible to align the ticks with the points on the graph. As it stands, the ticks are always misaligned compared to the points.
3/3