I`m trying to compile the QCustomPlot Version:2.1.0 example with QT Creator (Qt6.2.4).

It gives me errors like "qcustomplot\examples\build-plot-examples-Desktop_Qt_6_2_4_MinGW_64_bit-Debug\debug\moc_qcustomplot.cpp:249: error: template argument 1 is invalid
debug\moc_qcustomplot.cpp:249:54: error: template argument 1 is invalid
249 | , QtPrivate::TypeAndForceComplete<QCP, std::true_type>
| ^"


moc_qcustomplot.cpp

const QMetaObject QCP::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_QCP.offsetsAndSize,
    qt_meta_data_QCP,
    nullptr,
    nullptr,
qt_incomplete_metaTypeArray<qt_meta_stringdata_QCP_t
, QtPrivate::TypeAndForceComplete<QCP, std::true_type>
>,
    nullptr
} };

Edit this block manualy´╝îthe examples build successfully.

const QMetaObject QCP::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_QCP.offsetsAndSize,
    qt_meta_data_QCP,
    nullptr,
    nullptr,
qt_incomplete_metaTypeArray<qt_meta_stringdata_QCP_t
, QtPrivate::TypeAndForceComplete<QMetaObject, std::true_type>
>,
    nullptr
} };