2022-04-10 QT6.0以上使用qcustomplot报错简单办理法

程序员 2024-10-6 13:19:23 102 0 来自 中国
qcustomplot是qt一个好用的图形绘制库,近来更新qt版本到6.2.4后,发现原先的qcustomplot会报错,报错缘故原由如下:

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>
|                                                      ^
官网上找到了办理方法,分享一下,直接使用以下我分享的qcustomplot.h文件更换掉项目中的qcustomplot.h即可(个人发起:构创建置内里不选影子构建)。


文件分享:
(https://upload-images.jianshu.io/upload_images/22651785-73f6988e4b0339e4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
以为有效的话点个赞吧。
您需要登录后才可以回帖 登录 | 立即注册

Powered by CangBaoKu v1.0 小黑屋藏宝库It社区( 冀ICP备14008649号 )

GMT+8, 2024-10-18 16:51, Processed in 0.141028 second(s), 32 queries.© 2003-2025 cbk Team.

快速回复 返回顶部 返回列表