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. Create line chart with Visual Studio 2015 and Qt 5.9
Forum Updated to NodeBB v4.3 + New Features

Create line chart with Visual Studio 2015 and Qt 5.9

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 1.2k 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.
  • K Offline
    K Offline
    Kanguru
    wrote on last edited by
    #1

    Hello,
    I am trying to create a line chart in Visual Studio 2015 by using Qt 5.9.

    I already set up the .pro file, but still get a problem with QtLib.

    In main.cpp
    0_1508201805965_chart1.PNG
    In .pro file
    0_1508201837112_chart2.PNG

    And the error
    0_1508201852356_chart3.PNG

    I appreciate any help from all of you

    Thank you

    jsulmJ 1 Reply Last reply
    0
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      does using the macro instead help:

      QT_CHARTS_USE_NAMESPACE
      
      int main(int argc, char *argv[])
      

      Do the example chart projects work for you? If they do that will be a simple test of finding differences of broken vs working...

      1 Reply Last reply
      0
      • 6thC6 Offline
        6thC6 Offline
        6thC
        wrote on last edited by
        #3

        Where I do use Charts obejcts, I also use a namespace on that class (as you are main):

        using namespace QtCharts;
        class ...
        

        Again, comparing the example apps to mine worked a treat for me.

        1 Reply Last reply
        0
        • K Kanguru

          Hello,
          I am trying to create a line chart in Visual Studio 2015 by using Qt 5.9.

          I already set up the .pro file, but still get a problem with QtLib.

          In main.cpp
          0_1508201805965_chart1.PNG
          In .pro file
          0_1508201837112_chart2.PNG

          And the error
          0_1508201852356_chart3.PNG

          I appreciate any help from all of you

          Thank you

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

          @Kanguru Can you post the compiler/linker output? It looks like your app is not linked against QtChart lib.

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

          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