Results 1 to 6 of 6

Thread: QTCharts not found after installing them

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2021
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default QTCharts not found after installing them

    So, I'm trying to use some QtCharts and what I did was update the repositories and add QtCharts, but it seemed like a 0 mb update (as it told me) and when I'm trying to include QPieChart or something from QChart I get an error as it's not there. How could I fix it? Thank you

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTCharts not found after installing them

    Did you add the path to the QtCharts include files to your project configuration? You can't just write #include <QPieChart> and expect your compiler to know where to find that file if it lives in a different path from other include files.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    May 2021
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTCharts not found after installing them

    Quote Originally Posted by d_stranz View Post
    Did you add the path to the QtCharts include files to your project configuration? You can't just write #include <QPieChart> and expect your compiler to know where to find that file if it lives in a different path from other include files.
    I did not, as a matter of fact. How do I do that?

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTCharts not found after installing them

    I have no idea what environment you are using for your builds. If you are using Qt Creator, you modify the .pro file; if you are using Visual Studio on Windows, you modify the C++ Additional include directories setting in the project's Property Pages. In either case, you need to add the path to the include files.

    You will also have to add the library file(s) and path to the linker options in Visual Studio.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  5. #5
    Join Date
    May 2021
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTCharts not found after installing them

    I can't seem to find QT Charts - maybe it was not installed? I'm using QT 5.15.2 - and it's not here, because I tried building it, but Maintenance tool tells me it's installed

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,243
    Thanks
    303
    Thanked 866 Times in 853 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTCharts not found after installing them

    In my installation of Qt 5.14.2 using MSVC 2015, 64 bit, the include files are at 5.14.2/msvc2015_64/include/QtCharts, the libraries are at 5.14.2/msvc2015_64/lib, and the DLLs under 5.14.2/msvc2015_64/bin. My MinGW install has them in the same places relative to the top level of the mingw path.

    If you are working on linux I can't tell you where they might be.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QtCharts doesnt show lineseries
    By Flavio Mesquita in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2018, 21:46
  2. The painting process of scatter series in QtCharts
    By Onat in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2017, 16:48
  3. Multiple colors QLineSeries in QtCharts
    By cmartinezdemorentin in forum Qt Programming
    Replies: 2
    Last Post: 23rd March 2017, 17:04
  4. qwt vs qtcharts
    By hassinoss in forum Qwt
    Replies: 1
    Last Post: 13th January 2017, 07:50
  5. GLU not found
    By induks in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2012, 14:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.