QCustomPlot Discussion and Comments

Compilation error with new version of Qt/MinGWReturn to overview

Hi,
I'm a user of qcustomplot and I just migrated from Qt 5.11 with MinGW 32 bits to Qt 6.2.3 with MinGW 64 bits 9.0.0. I downloaded that last version of qcustomplot (2.1.0) and I have compilation errors:

C:\Users\Files\JCG\Programmation\Projets Qt\libraries\graphlib\build-test_qcustomplot_64-Desktop_Qt_6_2_3_MinGW_64_bit-Debug\debug\moc_qcustomplot.cpp:242: error: template argument 1 is invalid
debug\moc_qcustomplot.cpp:242:54: error: template argument 1 is invalid
242 | , QtPrivate::TypeAndForceComplete<QCP, std::true_type>

and

C:\Users\Files\JCG\Programmation\Projets Qt\libraries\graphlib\build-test_qcustomplot_64-Desktop_Qt_6_2_3_MinGW_64_bit-Debug\debug\moc_qcustomplot.cpp:241: error: template argument 2 is invalid
debug\moc_qcustomplot.cpp:241:1: error: template argument 2 is invalid
241 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QCP_t
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242 | , QtPrivate::TypeAndForceComplete<QCP, std::true_type>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any ideas?

Thanks,

Jean-Claude

The answer to my question is bellow, post 'QT 6.2 patch'
The patched file is available here: https://www.sendspace.com/file/dug7xs
Thanks for the patch