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

QtCharts 'umbrella' header cannot be included?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.8.0 RC
    • 5.8.0 Alpha
    • Charts
    • None
    • 644d3e9df36ca8df7c109682b3f11850a90d35ab

    Description

      With version 5.7 the code below was valid:

      #include <QtCharts>
      
      QT_CHARTS_USE_NAMESPACE
      
      ...... skipped
      

      So I was just including some 'top-level' header, the one that includes everything else. Now with this include on macOS I have:

      In file included from ../Qt5.8.0-beta/5.8/clang_64/lib/QtCharts.framework/Headers/QtCharts:5:
      ../Qt5.8.0-beta/5.8/clang_64/lib/QtCharts.framework/Headers/chartsnamespace.h:36:1: error: expected namespace name
      QT_CHARTS_USE_NAMESPACE
      ^
      ../Qt5.8.0-beta/5.8/clang_64/lib/QtCharts.framework/Headers/qchartglobal.h:62:51: note: expanded from macro 'QT_CHARTS_USE_NAMESPACE'

      1. define QT_CHARTS_USE_NAMESPACE using namespace QT_CHARTS_NAMESPACE;
        ^
        ../Qt5.8.0-beta/5.8/clang_64/lib/QtCharts.framework/Headers/qchartglobal.h:57:29: note: expanded from macro 'QT_CHARTS_NAMESPACE'
        #define QT_CHARTS_NAMESPACE QtCharts
        ^
        1 error generated.
        make: *** [dashboardwindow.o] Error 1
        11:59:10: The process "/usr/bin/make" exited with co

      Is it documented somewhere, am I missing something?

      Attachments

        Issue Links

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

          Activity

            People

              e0348803 Miikka Heikkinen
              tpochep Timur Pocheptsov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes