g++ 由 qmake 使用,gcc 由套件配置

g++ is used by qmake and gcc is configured by the kit

 "/usr/bin/g++" is used by qmake, but "/usr/bin/gcc" is configured in the kit.
 please update your kit of choose a mkspec for qmake that matches your target environment better.

找不到任何方法来更改 qmake 使用的编译器以匹配套件配置的编译器。

一个工具 > 选项 > 构建 & 运行 > 工具包。没有办法将 qmake 编译器改回 gcc。问题是 qt 5.9

只检测到 gcc 和 clang auto

Tools->Options->build & 运行->compiler 有你需要修复的设置,
或添加新套件,这是我的套件设置

问题是我安装了两个版本的 Qt,我认为配置或重叠的东西所以 g++ 选项没有出现,直到我删除两个版本并再次安装 Qt 5.9.1 g++ 选项出现了,现在我没有问题了。