Description
QtCharts dllimport/export wrong for static compilation of Qt and use with CMake => you get linking errors like:
error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __cdecl QtCharts::QLegend::setAlignment(class QFlags<enum Qt::AlignmentFlag>)" (imp?setAlignment@QLegend@QtCharts@@QEAAXV?$QFlags@W4AlignmentFlag@Qt@@@@@Z) referenced in function...
Guess the reason is that unlike other modules that honor QT_STATIC QtCharts still uses QT_CHARTS_STATICLIB that is not set ATM.