这个例子引入#include <QSystemPerformanceInfo> 编译器 没有找到
时间: 2023-06-14 20:04:49 浏览: 100
这个问题可能是因为你的编译环境中没有包含 QSystemPerformanceInfo 模块的头文件或库文件。
如果你是使用 Qt Creator,可以尝试在 .pro 文件中添加以下代码:
```qmake
QT += systeminfo
```
这将会在编译时链接 QSystemPerformanceInfo 模块。
如果你是在命令行编译,可以尝试添加以下参数:
```bash
-lQt5SystemInfo
```
这将会链接 QSystemPerformanceInfo 模块的库文件。
另外,你也需要确保你已经正确安装了 Qt 框架,并且安装了 systeminfo 模块。
阅读全文
相关推荐
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![text/plain](https://img-home.csdnimg.cn/images/20250102104920.png)
![cpp](https://img-home.csdnimg.cn/images/20250102104920.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![h](https://img-home.csdnimg.cn/images/20250102104920.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)