3
I am creating a window with Pyqt5 Framework and need to add to it a background image. For this, I am setting your stylesheet thus:
mainWindow.setStyleSheet('background-image: url("./MyImage.png");')
The problem is that the image is added to the MainWindow and for your widgets children, such as the QLineEdit and the QPushButton. I would like to know how I can make this change in stylesheet window, without affecting the others widgets.