Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator errors with QtGraphs QML
Forum Updated to NodeBB v4.3 + New Features

QtCreator errors with QtGraphs QML

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
25 Posts 4 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jsulmJ jsulm

    @Tobias83 Did you try to build in release mode?

    T Offline
    T Offline
    Tobias83
    wrote on last edited by
    #21

    @jsulm In release mode, there is also the error unknown component for the QtGraphs prompts.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #22

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      1
      • SGaistS SGaist

        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
        T Offline
        T Offline
        Tobias83
        wrote on last edited by
        #23

        @SGaist OK, I did so and there is no change: unknown component )-:

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #24

          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 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          0
          • SGaistS SGaist

            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 ?

            T Offline
            T Offline
            Tobias83
            wrote on last edited by
            #25

            @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 of

            import 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

            1 Reply Last reply
            0
            • T Tobias83 has marked this topic as solved on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved