我正在尝试打开4.8上的项目,但我无法编译它.它不断向我显示“不是这样的文件或目录”的错误.
error: C1083: Cannot open include file: 'QtGui/QApplication': No such file or directory error: C1083: Cannot open include file: 'QDialog': No such file or directory error: C1083: Cannot open include file: 'QMainWindow': No such file or directory error: C1083: Cannot open include file: 'QWidget': No such file or directory
还有很多.
One of the major internal infrastructural changes in Qt 5 compared to
Qt 4 is the splitting of widgets from the QtGui module into a new
QtWidgets module. This obvIoUsly will require buildsystem changes at
least,but also causes the need for downstreams to add includes for
headers which were not needed before,as those includes were removed
from headers which Now remain in the QtGui module.Another includes-related issue in porting from Qt 4 to Qt 5 is dealing
with includes for classes which have moved to the QtWidgets module.
Whereas Qt 4 based code might use
#include <QtGui/QWidget> This must be updated to either #include <QtWidgets/QWidget> Or more portably (Which works in Qt 4 and Qt 5): #include <QWidget>
原文地址:https://www.jb51.cc/windows/365578.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。