Win10 预览版体验win11,然后折腾来折腾去,就没有搞好。
后来运行发现 clion运行不了之前的Qt项目了
当你使用Clion开始编译QT程序的时候,cmake编译没有问题。但是当你运行项目的时候会发现根本运行不成功。报下面这条错误。
找遍了全部的外网教程,都是使用其他的库大部分没有说的很清楚。
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fi
x this problem.
后来发现配置一下环境变量就可以,
注意不能配置QT_PLUGIN_PATH
,不然你打开QT Creator也会报错,这个问题
第二个环境变量其实不用管。我配着实验的。对了要重启电脑。我也不知道为什么。