[PyQt] Some problems with styleSheets in QT4.3.1 and PyQt4.3

David Boddie david at boddie.org.uk
Mon Aug 20 23:22:22 BST 2007


On Monday 20 August 2007 23:54, Gustavo A. Dí­az wrote:
> David Boddie escribió:

> > I'm currently having difficulties making a minimal testcase. I can't seem
> > to persuade QStackedWidget to use a background image in Qt 4.3.0. If you
> > have a few lines of code that can do this, I would very much like to see
> > them.
>
> self.stackedWidget.setStyleSheet ("QStackedWidget {border: 0px; \
>                         background-image:
> url(:/Styles/styles/stackedBg.png); \
>                         background-repeat: no repeat;} \
>                         ")
>
> Where stackedWidget is QStackedWidget.

Yes, I saw that in the MainApp.py file. I'll take another look when I get
a chance.

David



More information about the PyQt mailing list