Background at Qt Widget

2019-09-13 09:57发布

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.

0条回答
登录 后发表回答