PDA

View Full Version : How to make automatically resizeable background-image



candyshop
16th November 2009, 15:14
I have background-image in my mainwindow. And now, when I call w.showFullScreen(); i want to show this image in fullscreen, no in fixed size.. Any ideas ?

high_flyer
17th November 2009, 10:33
It depends how you implemented your backgroud.
Is it a QLabel, or is it a QBrush, a QPixmap perhaps?

Can you show the relevant code?

candyshop
22nd November 2009, 05:47
I use Style Sheet..,


QMainWindow
{
background-image: url(:/images/debug/foto.jpg)
}