I am using Qt 6 creator and trying to set up custom plot on it. I keep getting the error in qcustomplot.cpp error:template argument 1 is invalid. on the lines

qt_incomplete_metaTypeArray<qt_meta_stringdata_QCP_t,
// Q_OBJECT / Q_GADGET
QtPrivate::TypeAndForceComplete<QCP, std::true_type>

Does anyone know a workaround for this ?