Qt Creator 的一个奇怪问题,我构建了一个简单的项目

问题描述 投票:0回答:2

这是我的 Qt Creator 版本:

这个项目非常简单,只包含两个类,如下所示: 项目结构

当我构建这个项目时,它会报告这样的错误:多个目标模式。停止 并链接到 Makefile 并指向这样的区域:

qrc_stylesheet.cpp:../Lighting/stylesheet.qrc \
D:/Qt/5.14.0/mingw73_64/bin/rcc.exe \
活动\代码\页面:\ 65001 \
../照明/qss/login.qss
D:\Qt .14.0\mingw73_64 中 cc.exe -名称样式表..\Lighting\stylesheet.qrc -o qrc_stylesheet.cpp

之前好几次,我删除了文本 D:/Qt/5.14.0/mingw73_64/bin/rcc.exe \
活动\代码\页面:\ 65001 \
../照明/qss/login.qss

神奇的是,它有效!但是,每次我重建项目时,它都会再次附加到 Makefile >_< but last time I rebuild the project again, it didn't work.I'm very confused by the problem, can anyone help me out..

c++ makefile mingw qt-creator qmake
2个回答
0
投票

我安装了新版本的Qt,问题完美解决。我认为可能是Qt本身有问题


0
投票

我也有同样的症状。 删除活动代码页可以解决该问题。 但不知道为什么会出现这个问题。

即使我安装了新版本的At,也会出现同样的情况。

© www.soinside.com 2019 - 2024. All rights reserved.