[Qt-interest] Scalable backgrounds with style sheets

Wagner Sales wsales at gmail.com
Wed Sep 29 16:46:59 CEST 2010


Hi all,

I'm developing a theme for a touch screen application. One of most
common task are change the widget background. To do this, I'm using
style sheets and SVG files. But i'm was unable to set a scalable
background to widgets. When I mean an scalable background are: if the
SVG haves 100x100, and widgets 200x400, the widget needs to scale the
background, and not tile. Are some way to do this with style sheets or
I'll needs to re-implement the paintEvent?

Regards,

Wagner Sales



More information about the Qt-interest-old mailing list