[Qt-interest] QDialog with background image
Paresh Sawant
paresh.sawant at gmail.com
Thu Jul 30 13:23:29 CEST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/8bd43059/attachment.html
More information about the Qt-interest-old
mailing list