[Qt-interest] is it possible to fill the whole background with a image while using brush

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


sorry for the typo in subjet I meant background

On Friday 23 July 2010 11:30 AM, Pritam Ghanghas wrote:
> Hi All
>
> I have a problem with QPalette::Window color role.
> I am using a image to create a brush for this role.
> When I draw a widget with size more than the imageSize,
> the brush is not scaled to the size, instead its tiled.
> Is there way where in I can have it fill the whole window with out
> tiling.
>
> Gradients have such a option (QGradient::ObjectBoundingMode). But I
> couldn't find anything similar for texturePattern.
>
>
>    




More information about the Qt-interest-old mailing list