error: QT 5.0 QTreeWidget include not found

五迷三道 提交于 2019-12-11 13:02:34

问题


In manual for QTreeWidget it states that we have to:

include

however when I do that I get error:

d:*********: error: C1083: Cannot open include file: 'QTreeWidget': No such file or directory

However #include gets found.

Where does it go wrong here? Thanks!


回答1:


Add QT += widgets (to link with the widgets module) into your .pro file, then run qmake and then build your project.



来源:https://stackoverflow.com/questions/16791844/error-qt-5-0-qtreewidget-include-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!