在编译前运行 qmake

为防止增量编译失败,请在编译前运行 qmake,尽管这会耗费更多时间。转到首选项>Build & Run >Qmake ,然后选择Run qmake on every build

构建与运行首选项中的 Qmake 选项卡

另请参阅 How To: Build and Run 和 qmake Build Configuration

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.