is not in a subdirectory of the resource file.You now have the option to copy this file to a valid location. .
该错误原因是项目路径英文导致的,换成全中文路径就没问题了
具体步骤:
双击qrc文件,先添加前缀,然后添加图片资源,最后在代码里添加如下语句:
//设置图标
setWindowIcon(QIcon("://res/plane.png"));
is not in a subdirectory of the resource file.You now have the option to copy this file to a valid location. .
该错误原因是项目路径英文导致的,换成全中文路径就没问题了
具体步骤:
双击qrc文件,先添加前缀,然后添加图片资源,最后在代码里添加如下语句:
//设置图标
setWindowIcon(QIcon("://res/plane.png"));