在项目所在目录下按住shift+右键,打开powershell窗口
(需要在环境变量中配置好相应编译器下bin所在路径)
生成了rcc之后就不需要使用qrc文件了,rcc体积小且不易被篡改
需要先注册rcc然后就可以使用里面的资源了
//注册二进制资源文件 QResource::registerResource("./res.rcc");
setWindowIcon(QIcon(":/images/me1.png"));//使用资源