QtCreator errors with QtGraphs QML
-
Are you trying to use both Qt Graphs and Qt Charts at the same time ?
-
Did you nuke the build folder after these changes to ensure you start from a clean state ?
-
@SGaist I moved the build directory:
mv build-HardCore-Desktop-Debug/ build-HardCore-Desktop-Debug_old/
Than I executed cmake file again, but I can't build the project and the project is not structered anymore. There is only a file list at the left site. The error in German language is:
:-1: Fehler: CMake-Konfiguration "Debug wurde nicht gefunden. Verfügbare Konfigurationen: "".
Stellen Sie sicher, dass der Wert der CMAKE_BUILD_TYPE-Variable derselbe wie der des "Build-Typ"-Felds ist.... cmake configuration Debug was not found. Ensure that the variable value CMAKE_BUILD_TYPE is the same as that of the Build Type area.
-
@SGaist I moved the build directory:
mv build-HardCore-Desktop-Debug/ build-HardCore-Desktop-Debug_old/
Than I executed cmake file again, but I can't build the project and the project is not structered anymore. There is only a file list at the left site. The error in German language is:
:-1: Fehler: CMake-Konfiguration "Debug wurde nicht gefunden. Verfügbare Konfigurationen: "".
Stellen Sie sicher, dass der Wert der CMAKE_BUILD_TYPE-Variable derselbe wie der des "Build-Typ"-Felds ist.... cmake configuration Debug was not found. Ensure that the variable value CMAKE_BUILD_TYPE is the same as that of the Build Type area.
-
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