Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtCharts module not found even after installing in Qt Maintenance
QtWS25 Last Chance

QtCharts module not found even after installing in Qt Maintenance

Scheduled Pinned Locked Moved Solved Installation and Deployment
19 Posts 8 Posters 6.3k Views
  • 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.
  • S Offline
    S Offline
    silverfox
    wrote on 14 Jun 2021, 16:48 last edited by
    #1

    Despite my attempts at installing QtCharts, this module just won't be imported.

    From these two questions:

    • https://stackoverflow.com/questions/41625233/how-to-include-the-qtcharts-library-in-qt-creator-4-2-0-community
    • https://forum.qt.io/topic/85368/how-to-inclide-include-qtcharts-library-to-qt-project

    And the docs : https://doc.qt.io/qt-5/qtcharts-index.html

    I've already included QtCharts when using Qt Maintenance (I even re-checked it three times):

    Capture.PNG

    And restarted QtCreator twice, but it still showed the same error:
    er.PNG

    What I'm I doing wrong here? Should I reinstall Qt and start with a fresh copy to see if the error reappear?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Jun 2021, 21:04 last edited by
      #10

      @SGaist said in QtCharts module not found even after installing in Qt Maintenance:

      You can add a custom step to call "jom install".

      After the build step

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

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 14 Jun 2021, 16:53 last edited by
        #2

        Hi,

        Isn't that a source install and you should build/install it before you can use it ?

        Which version of Qt are you using ?

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

        S 1 Reply Last reply 14 Jun 2021, 17:00
        1
        • S SGaist
          14 Jun 2021, 16:53

          Hi,

          Isn't that a source install and you should build/install it before you can use it ?

          Which version of Qt are you using ?

          S Offline
          S Offline
          silverfox
          wrote on 14 Jun 2021, 17:00 last edited by silverfox
          #3

          @SGaist

          @SGaist said in QtCharts module not found even after installing in Qt Maintenance:

          Hi,

          Isn't that a source install and you should build/install it before you can use it ?

          Which version of Qt are you using ?

          For the first question, umm, if you mean if I've installed Qt, then yes, I have (otherwise I don't understand this question).
          Second question, I'm using QtCreator 4.14.2 and Qt 5.15.2 (MSVC 2019, 64 bit).

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 14 Jun 2021, 17:01 last edited by
            #4

            I meant the Qt charts module. From the looks of it, you get the sources of it. So you have to first build and install it before using it.

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

            S 1 Reply Last reply 14 Jun 2021, 17:11
            1
            • S SGaist
              14 Jun 2021, 17:01

              I meant the Qt charts module. From the looks of it, you get the sources of it. So you have to first build and install it before using it.

              S Offline
              S Offline
              silverfox
              wrote on 14 Jun 2021, 17:11 last edited by
              #5

              @SGaist
              Oh really? How do I install and build it? I didn't know that, I only knew that I have to add it with Qt Maintenance first 😅

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 14 Jun 2021, 18:37 last edited by
                #6

                You can open the .pro file in Qt Creator to build it with the Qt version(s) you want to use.

                You can add a custom step to call "jom install".

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

                S 1 Reply Last reply 14 Jun 2021, 22:49
                0
                • S SGaist
                  14 Jun 2021, 18:37

                  You can open the .pro file in Qt Creator to build it with the Qt version(s) you want to use.

                  You can add a custom step to call "jom install".

                  S Offline
                  S Offline
                  silverfox
                  wrote on 14 Jun 2021, 22:49 last edited by silverfox
                  #7

                  @SGaist
                  How do I call it and where do I insert it? I found no tutorial that told me I need to install it first.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 15 Jun 2021, 21:13 last edited by
                    #8

                    I the Qt Creator documentation.

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

                    S 1 Reply Last reply 16 Jun 2021, 01:26
                    0
                    • S SGaist
                      15 Jun 2021, 21:13

                      I the Qt Creator documentation.

                      S Offline
                      S Offline
                      silverfox
                      wrote on 16 Jun 2021, 01:26 last edited by
                      #9

                      @SGaist

                      Could you specify what command to insert and where to insert it?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 16 Jun 2021, 21:04 last edited by
                        #10

                        @SGaist said in QtCharts module not found even after installing in Qt Maintenance:

                        You can add a custom step to call "jom install".

                        After the build step

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

                        1 Reply Last reply
                        1
                        • D Offline
                          D Offline
                          deadundead
                          wrote on 23 Jun 2021, 11:18 last edited by deadundead
                          #11

                          I have the same problem.
                          Suspiciously, installation of QtCharts module takes zero bytes!

                          cc7e1ea2-ebff-4c72-a0ac-63cf0f0c8d13-изображение.png

                          Here's the output from console usage of maintenace tool.

                          D:\Qt
                          λ  .\MaintenanceTool.exe install addons.qt.qtcharts
                          [0] Arguments: D:\Qt\MaintenanceTool.exe, install, addons.qt.qtcharts
                          [23] Operations sanity check succeeded.
                          [24] Reading Qt Account settings from disk: "C:/Users/undea/AppData/Roaming/Qt/qtaccount.ini"
                          [24] Opensource installation detected: "D:/Qt"
                          [25] QtAccount information:
                          [25] Login completed: false
                          [25] Email: "undead.rus@gmail.com"
                          [25] Total number of licenses: 0
                          [25] Account type: 1
                          [963] Login completed to Qt Account: "undead.rus@gmail.com"
                          [1225] Saving licenses to file: "C:/Users/undea/AppData/Roaming/Qt/qtlicenses.ini"
                          [1226] Saving Qt Account settings to file: "C:/Users/undea/AppData/Roaming/Qt/qtaccount.ini"
                          [1350] "Installation preconditions ok, installation can proceed!" [ "success" ]
                          [7110] Preparing meta information download...
                          [10348] Retrieving meta information from remote repository...
                          [11658] Extracting meta information...
                          [22715] Using 'QtConanBinary': D:\Qt\Tools\Conan\conan.exe
                          [26618] Warning: QFont::setPixelSize: Pixel size <= 0 (-1)
                          [26619] Selected components without dependencies:
                          addons
                          addons.qt
                          addons.qt.qtcharts
                          [26619] Installation space required: "0.00 bytes" Temporary space required: "0.00 bytes" Local repository size: "0.00 bytes"
                          [26653] Tmp is on a different volume than the installation directory. Tmp volume mount point: "C:\\" Free space available: "180.46 GB" Install volume mount point: "D:\\" Free space available: "483.14 GB"
                          [26653] Installation will use 0.00 bytes of disk space.
                          [26654] Do you want to continue?
                          [26654] Yes|No
                          yes
                          [139612] Install size: 3 components
                          [139634] Preparing the installation...
                          [139651] Update finished!
                          [139951] Components installed successfully
                          

                          After many-many times of reinstalling the module nothing changed.
                          Search finds no files or folders in QT directory, containing "*charts".
                          Something is definitely broken in maintenance tool.
                          Trying to install another module, e.g. DataVisualization gives the same result.

                          artwawA 1 Reply Last reply 23 Jun 2021, 11:27
                          0
                          • D deadundead
                            23 Jun 2021, 11:18

                            I have the same problem.
                            Suspiciously, installation of QtCharts module takes zero bytes!

                            cc7e1ea2-ebff-4c72-a0ac-63cf0f0c8d13-изображение.png

                            Here's the output from console usage of maintenace tool.

                            D:\Qt
                            λ  .\MaintenanceTool.exe install addons.qt.qtcharts
                            [0] Arguments: D:\Qt\MaintenanceTool.exe, install, addons.qt.qtcharts
                            [23] Operations sanity check succeeded.
                            [24] Reading Qt Account settings from disk: "C:/Users/undea/AppData/Roaming/Qt/qtaccount.ini"
                            [24] Opensource installation detected: "D:/Qt"
                            [25] QtAccount information:
                            [25] Login completed: false
                            [25] Email: "undead.rus@gmail.com"
                            [25] Total number of licenses: 0
                            [25] Account type: 1
                            [963] Login completed to Qt Account: "undead.rus@gmail.com"
                            [1225] Saving licenses to file: "C:/Users/undea/AppData/Roaming/Qt/qtlicenses.ini"
                            [1226] Saving Qt Account settings to file: "C:/Users/undea/AppData/Roaming/Qt/qtaccount.ini"
                            [1350] "Installation preconditions ok, installation can proceed!" [ "success" ]
                            [7110] Preparing meta information download...
                            [10348] Retrieving meta information from remote repository...
                            [11658] Extracting meta information...
                            [22715] Using 'QtConanBinary': D:\Qt\Tools\Conan\conan.exe
                            [26618] Warning: QFont::setPixelSize: Pixel size <= 0 (-1)
                            [26619] Selected components without dependencies:
                            addons
                            addons.qt
                            addons.qt.qtcharts
                            [26619] Installation space required: "0.00 bytes" Temporary space required: "0.00 bytes" Local repository size: "0.00 bytes"
                            [26653] Tmp is on a different volume than the installation directory. Tmp volume mount point: "C:\\" Free space available: "180.46 GB" Install volume mount point: "D:\\" Free space available: "483.14 GB"
                            [26653] Installation will use 0.00 bytes of disk space.
                            [26654] Do you want to continue?
                            [26654] Yes|No
                            yes
                            [139612] Install size: 3 components
                            [139634] Preparing the installation...
                            [139651] Update finished!
                            [139951] Components installed successfully
                            

                            After many-many times of reinstalling the module nothing changed.
                            Search finds no files or folders in QT directory, containing "*charts".
                            Something is definitely broken in maintenance tool.
                            Trying to install another module, e.g. DataVisualization gives the same result.

                            artwawA Offline
                            artwawA Offline
                            artwaw
                            wrote on 23 Jun 2021, 11:27 last edited by
                            #12

                            @deadundead

                            @SGaist said in QtCharts module not found even after installing in Qt Maintenance:

                            you have to first build and install it before using it

                            Should be located in your sources folder.

                            For more information please re-read.

                            Kind Regards,
                            Artur

                            D 1 Reply Last reply 23 Jun 2021, 12:11
                            0
                            • artwawA artwaw
                              23 Jun 2021, 11:27

                              @deadundead

                              @SGaist said in QtCharts module not found even after installing in Qt Maintenance:

                              you have to first build and install it before using it

                              Should be located in your sources folder.

                              D Offline
                              D Offline
                              deadundead
                              wrote on 23 Jun 2021, 12:11 last edited by
                              #13

                              @artwaw
                              Do you mean I have to manually clone it fromn the repo and build it myself?
                              Why then is it listed as installable module in maintenace tool?
                              Why 99% of the answers on SO recommend installing it via Maintenace tool then? See topicstarter's SO post and links therein.
                              This is misguiding.

                              artwawA 1 Reply Last reply 23 Jun 2021, 14:55
                              0
                              • D deadundead
                                23 Jun 2021, 12:11

                                @artwaw
                                Do you mean I have to manually clone it fromn the repo and build it myself?
                                Why then is it listed as installable module in maintenace tool?
                                Why 99% of the answers on SO recommend installing it via Maintenace tool then? See topicstarter's SO post and links therein.
                                This is misguiding.

                                artwawA Offline
                                artwawA Offline
                                artwaw
                                wrote on 23 Jun 2021, 14:55 last edited by
                                #14

                                @deadundead You already have source installed via maintenance tool. I presume you just need to open the project .pro file, build, install/deploy/copy to Qt bin folders.

                                For more information please re-read.

                                Kind Regards,
                                Artur

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  arunkumaraqm
                                  wrote on 17 Jul 2021, 03:50 last edited by
                                  #15

                                  Somebody please post clear instructions. I just started working with QT a few days ago.
                                  I am on Ubuntu 20.04 and I installed QtCreator with the offline installer. I tried using the maintenance tool to install charts but it still says "module not found".

                                  D 1 Reply Last reply 30 Jul 2021, 12:05
                                  0
                                  • A arunkumaraqm
                                    17 Jul 2021, 03:50

                                    Somebody please post clear instructions. I just started working with QT a few days ago.
                                    I am on Ubuntu 20.04 and I installed QtCreator with the offline installer. I tried using the maintenance tool to install charts but it still says "module not found".

                                    D Offline
                                    D Offline
                                    deadundead
                                    wrote on 30 Jul 2021, 12:05 last edited by
                                    #16

                                    @arunkumaraqm I'm on Windows, but i was able:

                                    1. To build charts from the official repo.
                                    2. After I have finally tortured my OS to death and did a clean reinstall of windows and everything, I managed to install charts correctly. The thing is, there are 2 places you can install QtCharts from. The first way is from "additional libraries", which is supposed to be the source install, I think. However I was unable to locate the sources on my PC and got them from the repo.
                                      The second one is the binary install from Qt->Your version of QT section. And that had just simply worked.
                                      That was the answer I was trying to push for, cus on SO you clearly see "just install via Maintenace tool", without any mentions of building it from source.

                                    b7e92855-8d9b-47ab-b320-dd8c1b175228-изображение.png

                                    A B 2 Replies Last reply 20 Dec 2021, 07:56
                                    2
                                    • D deadundead
                                      30 Jul 2021, 12:05

                                      @arunkumaraqm I'm on Windows, but i was able:

                                      1. To build charts from the official repo.
                                      2. After I have finally tortured my OS to death and did a clean reinstall of windows and everything, I managed to install charts correctly. The thing is, there are 2 places you can install QtCharts from. The first way is from "additional libraries", which is supposed to be the source install, I think. However I was unable to locate the sources on my PC and got them from the repo.
                                        The second one is the binary install from Qt->Your version of QT section. And that had just simply worked.
                                        That was the answer I was trying to push for, cus on SO you clearly see "just install via Maintenace tool", without any mentions of building it from source.

                                      b7e92855-8d9b-47ab-b320-dd8c1b175228-изображение.png

                                      A Offline
                                      A Offline
                                      AWSMtwPPL
                                      wrote on 20 Dec 2021, 07:56 last edited by
                                      #17

                                      @deadundead the one and only solution that solved my problem. youre my god.

                                      Q 1 Reply Last reply 22 Feb 2022, 15:41
                                      0
                                      • A AWSMtwPPL
                                        20 Dec 2021, 07:56

                                        @deadundead the one and only solution that solved my problem. youre my god.

                                        Q Offline
                                        Q Offline
                                        qAminzzz
                                        wrote on 22 Feb 2022, 15:41 last edited by
                                        #18
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        • D deadundead
                                          30 Jul 2021, 12:05

                                          @arunkumaraqm I'm on Windows, but i was able:

                                          1. To build charts from the official repo.
                                          2. After I have finally tortured my OS to death and did a clean reinstall of windows and everything, I managed to install charts correctly. The thing is, there are 2 places you can install QtCharts from. The first way is from "additional libraries", which is supposed to be the source install, I think. However I was unable to locate the sources on my PC and got them from the repo.
                                            The second one is the binary install from Qt->Your version of QT section. And that had just simply worked.
                                            That was the answer I was trying to push for, cus on SO you clearly see "just install via Maintenace tool", without any mentions of building it from source.

                                          b7e92855-8d9b-47ab-b320-dd8c1b175228-изображение.png

                                          B Offline
                                          B Offline
                                          bossman48
                                          wrote on 16 Mar 2022, 07:27 last edited by
                                          #19

                                          @deadundead thank you :)

                                          1 Reply Last reply
                                          0

                                          • Login

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