Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QtCharts with VS2015+Qt VS Tool
Forum Updated to NodeBB v4.3 + New Features

Using QtCharts with VS2015+Qt VS Tool

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 854 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.
  • divergerD Offline
    divergerD Offline
    diverger
    wrote on last edited by diverger
    #1

    I'm using Qt VS Tools with Qt 5.10.1_32bit. And my project is created with Qt VS Tool, so I have no ways to add "QT += charts" to the .pro file. But I manually add the header includes folder and the library is add to the dependency. Now my application is compiled ok. But when the code runs to "QChart *chart = new QChart;", there is an exception throw in Qt5Gui.dll :

    0xC0000005: Access violation reading location 0x00000000.
    

    I can't figure out where is wrong. Must I create .pro using QCreator, and add "QT += charts" to it, then convert it to Qt VS Tool project?

    Any help?

    jsulmJ 1 Reply Last reply
    0
    • divergerD diverger

      I'm using Qt VS Tools with Qt 5.10.1_32bit. And my project is created with Qt VS Tool, so I have no ways to add "QT += charts" to the .pro file. But I manually add the header includes folder and the library is add to the dependency. Now my application is compiled ok. But when the code runs to "QChart *chart = new QChart;", there is an exception throw in Qt5Gui.dll :

      0xC0000005: Access violation reading location 0x00000000.
      

      I can't figure out where is wrong. Must I create .pro using QCreator, and add "QT += charts" to it, then convert it to Qt VS Tool project?

      Any help?

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

      @diverger Are you sure it crashes at exactly that location and not somewhere bellow?

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

      1 Reply Last reply
      2
      • TheTugaOneT Offline
        TheTugaOneT Offline
        TheTugaOne
        wrote on last edited by
        #3

        Hello ,
        I have had a similar problem about a week ago , check out my thread and see if my fix resolves your problem.
        https://forum.qt.io/topic/88173/strange-access-violation-exception-with-qt-charts

        1 Reply Last reply
        4
        • divergerD Offline
          divergerD Offline
          diverger
          wrote on last edited by
          #4

          Thanks for all your replies.

          I finally found the reason. It's similar to @TheTugaOne 's situation. I was compiling the debug version, but linking the non debug version of the Qt5Charts lib. When I link the debug version of Qt5Charts lib, all works well.

          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