Background at Qt Widget

老子叫甜甜 提交于 2019-12-25 08:17:13

问题


I just started my first project in Qt and I have problem with setting background for my QWidget. I added my photo to resources of project in qrc file. After that i edited my widget stylesheets and added there:

background-image: url('://resources/assets/subaru.jpg');

Unfortunately, I see my background only in preview editor ui, after compiled background is empty, without image.

来源:https://stackoverflow.com/questions/39830143/background-at-qt-widget

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!