[Qt-interest] theming support for qt app

lists4pghanghas lists4pghanghas at gmail.com
Sat Jul 24 19:11:42 CEST 2010


Any ideas on this.

On Friday 16 July 2010 01:09 PM, Pritam Ghanghas wrote:
> Hi
>
> I am trying to achieve some theming support in my application using
> QPalette and QStyle.
>
> There are two places where I am confused what to do:
>
> 1.) for images, I am right now introducing new StandardPixmap
> enumerations and handling them in StandardIconImplementation(). But I am
> thinking is it worth writing that code, when I a can pickup pixmaps
> directly from some path(generated as basepath + relativePath). And base
> path for pixmaps can be set in some application wide setting which is
> changed when theme is changed.
>
> 2.) if I use a image as brush. The pattern is not scaled, but tiled.
> say I set a pixmap for QPalette::Window role and then draw a big
> QMainWindow. The image will be tiled if it is smaller. There is nothing
> like "QGradient::ObjectBoundingMode" for texture brushes.
>
> Any suggestions are appreciated.
>
>
>    




More information about the Qt-interest-old mailing list