Background image not visble
-
Hi
I have set a background image on my main window by over riding the paintEvent.
However, if I set the background color of the widget the image is no longer visible - what do I need to do in order to be able to set a background color and have a background image?Thanks
-
If you re-implement paintEvent you are responsible for painting everything yourself, including background color via something like QPainter::fillRect(). If you want to stick to the default color you can call QWidget::paintEvent() at the top of your reimplemented method and then paint over the image.