[Qt-interest] QDialog with background image
Donal O'Connor
donaloconnor at gmail.com
Thu Jul 30 13:28:34 CEST 2009
I'm not sure if QT supports the CSS3 property: background-size: auto; yet?
On Thu, Jul 30, 2009 at 12:23 PM, Paresh Sawant <paresh.sawant at gmail.com>wrote:
> Hi,
>
> I am creating a dialog application with QDialog on windows mobile device
> (windows mobile professional 6.1)
>
> I want to set a background image using style sheet, so I am using
> "background-image: url(xyz.png)".
>
> The dimension of this image file is 290 X 240.
>
> When I run the dialog application, i change the dialog size using resize(),
> to make it look proportionate on the bigger screen geometry, which is around
> 450 X 550.
>
> But since the dimension of the image is smaller it gets repeated over the
> dialog area, instead of getting stretched.
>
> How could I use the same image file for different screen sizes ?
>
> - Paresh
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/ebb73411/attachment.html
More information about the Qt-interest-old
mailing list