Hi, i'm trying to set a background image on a combined QWidget using stylesheets.
For combined QWidget i mean a qwidget A in which there is a layout containing some widgets, for example:

I have the class A that extends QWidget, in te constructor i have the following code to create a combined widget:
Qt Code:
  1. hLayout = new QHBoxLayout;
  2. vLayout = new QVBoxLayout;
  3.  
  4. labelGroup->adjustSize();
  5. labelIco->adjustSize();
  6. labelIcoReceived->adjustSize();
  7. labelTxt->adjustSize();
  8. labelTime->adjustSize();
  9.  
  10. hLayout->addWidget(labelIcoReceived);
  11. hLayout->addWidget(labelGroup);
  12. hLayout->addWidget(labelIco);
  13. hLayout->addWidget(labelService);
  14. hLayout->addWidget(labelTime);
  15. vLayout->addLayout(hLayout);
  16. vLayout->addWidget(labelTxt);
  17.  
  18. setLayout(vLayout);
  19. setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Minimum);
  20. adjustSize();
To copy to clipboard, switch view to plain text mode 

If i try to append

setStyleSheet("background-color: yellow");
The result is the following:

widgets.JPG

And obviously i don't want this, i wan't to spread the color all over the widget.
I would like to use stylesheets because i wan't to add a scalable border image to the background like the one explained here and showed here:


How can i do this?

Thanks!