PDA

View Full Version : Which Qt4 function is used in spite of setPaletteBackgroundPixmap()



ashukla
26th October 2007, 06:56
Dear Everyone!
Which Qt4 fuction is available to use correponding to Qt3 function

setPaletteBackgroundPixmap (QPixmap ( "supeme.jpg", 0, QPixmap::Auto ) );

darshan.hardas
26th October 2007, 07:00
if your code is like this

widget->setPaletteBackgroundPixmap(pixmap);

then you can replace it with



QPalette palette;
palette.setBrush(widget->backgroundRole(), QBrush(pixmap));
widget->setPalette(palette);

a pure qt4 code