QtCreator 的实例stackedbarchartdrilldown 用vs2013 打开.pro后运行出现 "没有与参数列表匹配的构造函数实例""

QtCreator 的实例stackedbarchartdrilldown
用vs2013 打开.pro后运行出现错误:
//没有与参数列表匹配的构造函数实例
//错误 7 error C2440: “初始化”: 无法从“initializer-list”转换为“QStringList''.....

//参考
https://blog.csdn.net/a312024054/article/details/72784315

//以下是大神解决方法

注意,Windows下可能不容易编译通过,因为默认情况下,QVector没有打开接收initialize-list参数的构造函数。需要在合适的pri文件或者$$QTCREATOR_SOURCES/qtcreator.pri中添加这几行:
“`
windows {
DEFINES *= Q_COMPILER_INITIALIZER_LISTS
}
“`
一些成熟的插件,可以去
http://qtdream.com/topic/687
这里体验一下Qt Creator增强套装

猜你喜欢

转载自blog.csdn.net/weixin_41712355/article/details/81179253