Qt cannot initialize object parameter of type ‘QWidget‘ with an expression of type ‘QMainwindow‘


报错如图:

  qtcreator工程文件例程报错error: cannot initialize object parameter of type ‘QWidget’ with an expression of type ‘tab_workface’

问题分析

  可能因为qt creator4.11.0 based on qt 5.12
  版本略微冲突导致。。

问题解决
  帮助>关于插件,将ClangCodeModel勾掉,重启qtcreator即可解决。



上一篇:Qt 设置horizontal line 和vertical line的颜色

下一篇:Visual Stdio 调试出现0xC00000FD:Stack overflow原因及解决方法


Qt
Copyright © 2002-2019 k262电脑网 www.k262.cn 皖ICP备2020016292号
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!QQ:251442993 热门搜索 网站地图