首页 > 其他 > 详细

qt资源加载出错

时间:2019-02-25 00:25:39      阅读:384      评论:0      收藏:0      [点我收藏+]

-1: error: No rule to make target ‘../InteractivePlayer/style.qss‘, needed by ‘debug/qrc_res.cpp‘.  Stop.

问题出现:

我把添加qss资源文件  重新删除 移动位置。

再次添加新的资源文件,编译的时候出错。

解决:

1. .pro目录下 

RESOURCES += \
    res.qrc
是表示资源文件, 其会被生成一个qrc_res.cpp 文件。

2.清除编译目录(debug/release)下的make文件。

资源文件的加载路径并不是真实路径,需要添加增加的前缀。

技术分享图片

 

 

样式表添加: https://blog.csdn.net/qq_31073871/article/details/79943093

qss 文件高亮设置:  https://blog.csdn.net/liang19890820/article/details/51699473

qt 文件目录问题: https://blog.csdn.net/me_badman/article/details/54864100 

 

qt资源加载出错

原文:https://www.cnblogs.com/swing07/p/10428712.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!