Qt6.6.1 error question (C2882 : QCP)
Unsolved
Qt 6
-
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>
-
@Teemo-of-LOL try upgrading to Qt 6.6.2.
-
@Teemo-of-LOL I don't know but it might. Alternatively, check if your compiler can be updated.