Hi everyone,
For setting an image as the background image of my QWidget I am using the following code-
Qt Code:
this->setAutoFillBackground(true); this->setPalette(palette);To copy to clipboard, switch view to plain text mode
Now I want to reset my Palette and make my QWidget appear completely Black. How do I do that?
I tried usingand then setting this PixMap to my Palette, but it didn't workQPixMap and QPixMap::fill(Qt::Black)
Bookmarks