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. Cannot find QtCharts at all - looked everywhere
Forum Updated to NodeBB v4.3 + New Features

Cannot find QtCharts at all - looked everywhere

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 4 Posters 2.3k Views 2 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.
  • C Offline
    C Offline
    calin2110
    wrote on last edited by
    #1

    So I've been trying to install QtCharts for like 2 days now - when I open the QT Maintainance Tool, it tells me that it is installed (it is checked when I start the tool) - but I can't find it anywhere, I've been searching for it in the Qt file and when I installed it with the tool it told me it installs a 0 MB update for some whatever reason.

    The only thing I can find regarding charts is pieview.cpp and pieview.cpp in Qt\Examples...\itemviews. I am using qt 5.15.2 - do I need to update it a bit? Actually clueless now. Thank you

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Have you tried compiling some example? Create a new project, add QT+=charts in your project file, and see if it compiles.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        calin2110
        wrote on last edited by
        #3

        Don't know how to do that - I'm using CMakeLists and CLion

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4
          find_package(QT NAMES Qt6 Qt5 COMPONENTS Charts REQUIRED)
          find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Charts REQUIRED)
          

          (Z(:^

          1 Reply Last reply
          1
          • C Offline
            C Offline
            calin2110
            wrote on last edited by
            #5

            @sierdzio said in Cannot find QtCharts at all - looked everywhere:

            find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Charts REQUIRED)

            This is what I'm getting: CMake Error at C:/Qt/5.15.2/mingw81_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
            Could not find a package configuration file provided by "Qt5Charts" with
            any of the following names:

            Qt5ChartsConfig.cmake
            qt5charts-config.cmake
            

            Add the installation prefix of "Qt5Charts" to CMAKE_PREFIX_PATH or set
            "Qt5Charts_DIR" to a directory containing one of the above files. If
            "Qt5Charts" provides a separate development package or SDK, be sure it has
            been installed.

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Weird. Maybe try a full reinstall of whole Qt?

              (Z(:^

              1 Reply Last reply
              1
              • C Offline
                C Offline
                calin2110
                wrote on last edited by
                #7

                I tried actually that - is Qt charts not available on 5.15.2? I'm using the community version

                jsulmJ 1 Reply Last reply
                0
                • C calin2110

                  I tried actually that - is Qt charts not available on 5.15.2? I'm using the community version

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @calin2110 You need to select QtCharts separately in online installer or maintenance tool (QtCharts is not installed by default).

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    calin2110
                    wrote on last edited by
                    #9

                    https://imgur.com/a/H3L3HpX - you can see here it's already checked if it helps you

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SimonSchroeder
                      wrote on last edited by
                      #10

                      Remember that for QtCharts you either need the commercial license or make your own software GPL. In the community version of Qt the QtCharts module is only available under GPL and not LGPL. If you want to avoid this you can try Qwt instead.

                      1 Reply Last reply
                      2

                      • Login

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