PDA

View Full Version : Image - screen size



ahmdsd_ostora
11th July 2010, 15:51
I have two questions:

1- How to get the platform screen size ?
2- How to scale the background image set by setStyleSheet on a QWidget (typically to the widget size)?

Lykurg
11th July 2010, 15:57
for #1 see QDesktopWidget

for #2 I don't know right now, but I would go for a custom widget and do the drawing in the paint event myself.

ahmdsd_ostora
11th July 2010, 16:29
nice, thank you Lykurg