I would like to change the background of the QFrame at runtime, but I would load the background from disk (image). Setting a stylesheet in a QFrame does not work because the image is not in resources.
In one of the methods, the QPushButton icon is set, for example:
QPixmap img("/images/01.png");
ui.pushButton->setIcon(QIcon(img));
But QPushButton is not useful to me. I need to put other things inside a QFrame.
source
share