When executing the qcustomplot.cpp file, I encounter an error 'moc_qcustomplot.cpp error C2882: 'QCP': illegal use of namespace identifier in expression.' How can I fix this? I'm using version 6.6.1. I will also provide the line of code where the error occurs in moc_qcustomplot.cpp.
QtPrivate::TypeAndForceComplete<QCP::SelecetionType, std::true_type>,
// Q_OBJECT / Q_GADGET
QtPrivate::TypeAndForceComplete<QCP, std::true_type>
The error occurs at QtPrivate::TypeAndForceComplete<QCP, std::true_type>