Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98573

Expected namespace name QtCharts error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.1
    • Charts
    • None
    • macOS

    Description

      I think it's similar to the bug reported in Qt 5.8 - https://bugreports.qt.io/browse/QTBUG-56862

      I am getting similar error for:

       

      #include <QtCharts>
      using namespace QtCharts;
      

      I get the following build error:

       

      In file included from /Users/akshayrajgollahalli/Documents/GitHub/DataLogger/chart.cpp:5:
      /Users/akshayrajgollahalli/Documents/GitHub/DataLogger/chart.h:16:17: error: expected namespace name
      using namespace QtCharts;
                      ^
      In file included from /Users/akshayrajgollahalli/Documents/GitHub/DataLogger/cmake-build-debug/DataLogger_autogen/mocs_compilation.cpp:2:
      In file included from /Users/akshayrajgollahalli/Documents/GitHub/DataLogger/cmake-build-debug/DataLogger_autogen/EWIEGA46WW/moc_chart.cpp:10:
      /Users/akshayrajgollahalli/Documents/GitHub/DataLogger/cmake-build-debug/DataLogger_autogen/EWIEGA46WW/../../../chart.h:16:17: error: expected namespace name
      using namespace QtCharts;
                      ^

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            akshaybabloo akshay raj gollahalli
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes