Ok I added in the main window ui class:
palette();
QPalette palette;
palette();
palette.setBrush(QPalette::Window, QPixmap(":/Resources/IntroPic.png"));
To copy to clipboard, switch view to plain text mode
before the automatically generated
centralWidget
= new QWidget(New311Class
);
centralWidget = new QWidget(New311Class);
To copy to clipboard, switch view to plain text mode
and I added
centralWidget->setPalette(palette);
centralWidget->setAutoFillBackground(true);
centralWidget->setPalette(palette);
centralWidget->setAutoFillBackground(true);
To copy to clipboard, switch view to plain text mode
After that automatically generated code.
And I added the .png file under the prc directory, that is, under the Resources folder under the project.
And the pictrue didn't show up. ![Frown](images/smilies/frown.png)
If you have time, could you help me out a bit ?
Bookmarks