Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.10.0
-
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() {} }