QtCreator errors with QtGraphs QML
-
Even if it was already done once:
- Exit Qt Creator
- Delete the
CMakeLists.txt.user
file from your sources - Nuke all build folders
- Start Qt Creator and reconfigure your project
-
Even if it was already done once:
- Exit Qt Creator
- Delete the
CMakeLists.txt.user
file from your sources - Nuke all build folders
- Start Qt Creator and reconfigure your project
-
Since you wrote that the example is building successfully, what about copying it and the gradually replace its content with the one from your project ?
-
Since you wrote that the example is building successfully, what about copying it and the gradually replace its content with the one from your project ?
@SGaist OK, I coppied the main.qml file from the hellographs example to my project. And the GraphsView prompt was recognized. I found out, what the problem with my Main.qml was. I had to change the import commands:
instead ofimport QtGraphs 2.12
change to
import QtGraphs
helped (-:
Thank you very much!!!
But, I have still a question: How can I use the XYModelMapper? Is there a good example? The usage differs to QtCharts, specially xSection : qsizetype ...
Tobias