Qt app background

1
2
3
4
5
QPixmap bg(":/images/bg.jpg");
QPalette p(palette());
p.setBrush(QPalette::Background, bg);
setAutoFillBackground(true);
setPalette(p);