获取环境变量接口 QByteArray qgetenv(const char *varName)QString qEnvironmentVariable(const char *va...
当你在使用CMake配置Qt6项目时遇到错误提示“add the installation prefix of 'qt6' to cmake_prefix_path or set 'qt6_dir' to a directory containing one of the above files”时,通常意味着CMake无法找到Qt6的配置文件。以下是一些解决此问题的步骤: 确认Qt6已正确安装: 确保你已经安装了Qt6,并且安装...