Solved "ValueAxis.tickInterval" is not available in QtCharts 2.3.
-
Hello,
I'm porting a code made with Qt 5.15.2 to Qt 6.2.1. I'm facing an issue with the QValueAxis in QML :
"ValueAxis.tickInterval" is not available in QtCharts 2.3. "ValueAxis.tickType" is not available in QtCharts 2.3.
However, it is mentionned in the documentation that
This property was introduced in QtCharts 2.3
and it worked before (with 5.15.2).
Does anyone has an idea ?
Regards
Stéphane -
I was getting the same error and removing the version number from the import statement resolved it for me. That is
import QtCharts
rather thanimport QtCharts 2.3
I don't understand why the error appeared in the first place or why this change fixed it... I find QT versioning very opaque/confusing and would be very interested if someone is able to explain what is going on here
Also using Qt 6.2.1 (installed from Manjaro package manager)
-
It works !
Thanks
(I don't understand it either...)