Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. error with qtcharts

error with qtcharts

Scheduled Pinned Locked Moved Unsolved C++ Gurus
2 Posts 2 Posters 138 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.
  • T Offline
    T Offline
    teskor
    wrote on 17 Feb 2025, 16:47 last edited by
    #1
    #include <QApplication>
    #include <QMainWindow>
    #include <QtCharts>
    #include <QNetworkAccessManager>
    #include <QNetworkReply>
    #include <QJsonDocument>
    #include <QJsonObject>
    #include <QJsonArray>
    
    using namespace QtCharts; //error here
    

    why does it give such an error, qtcharts is connected, but nothing works

    error: Expected namespace name

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 17 Feb 2025, 16:50 last edited by
      #2

      See https://doc.qt.io/qt-6/qtcharts-changes-qt6.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      1/2

      17 Feb 2025, 16:47

      • Login

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