Background image for an application
-
how do u put a background image in a qt application?......
-
What you mean? background image for Widow? Wadget? Something else?
-
yea. a background image for window qt application
-
Something like this:
@
About::About(QWidget *parent) : QDialog(parent), _ui(new Ui::About) {
_ui->setupUi(this);
QPalette pal = palette();
pal.setBrush(backgroundRole(), QBrush(QPixmap("path_to_image.png")));
setPalette(pal);
...
}
@