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

Missing import/export declarations for private classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.10.0
    • Charts
    • None
    • Windows 10, mingw32

    Description

      Creating custom chart elements fails with linking errors because the private QtChart classes do not declare import/export declarations:

      #include <QtCharts/QChartGlobal>
      #include <private/xychart_p.h>
      #include <QtCharts/QChart>
      #include <QtGui/QPen>
      
      QT_CHARTS_BEGIN_NAMESPACE
      
      class MyLineChartItem :  public XYChart
      {
          Q_OBJECT
          Q_INTERFACES(QGraphicsItem)
      public:
          explicit MyLineChartItem(MyLineSeries *series, QGraphicsItem *item = 0) {
              domain()->minX(); // undefined reference error
          }
          ~MyLineChartItem() {}
      }

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes