1

I wanted to back to my problem:

Background at Qt Widget

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

It doesn't work. The background is just colored. When I add for example this .jpg resource as icon in PushButton it works welll. Doesn't want add as background, why? Can I set is as background in different way? I try

Q_ASSERT(QFileInfo( ":/resources/assets/subaru.jpg" ).exists() ); 

and program see this resource.

Community
  • 1
  • 1
Kriss McCone
  • 24
  • 1
  • 10

1 Answers1

0

I just add QGroupBox and make it as big as QWidget. It works, thanks! It holds my background.

Kriss McCone
  • 24
  • 1
  • 10