Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Qt Creator for Windows 中构建项目 (KDiff3) 时,我收到以下错误消息,我们将不胜感激。
C:\kdiff3\src-QT4\kreplacements\kreplacements.h:27:错误:QMainWindow:没有这样的文件或目录 #include < QMainWindow>
在将 QT 项目从 QT4 更新到 QT5 时,如果您看到上述错误,您将需要编辑您的 .pro 文件以包含:
QT += widgets
从 Qt 4.x 过渡到 Qt5