I would like change the QFrame Background at runtime, but, i would load the background from disk(an image).
Setting stylesheet at QFrame not work’s, because image isn’t in resources.
One way is set a QPushButton icon, for example:
QPixmap img("/images/01.png");
ui.pushButton->setIcon(QIcon(img));
But, an QPushButton isn’t useful to me. I need to put other things inside of QFrame.
From what I understood in your question, you do not want to use Resources ?
If that is the case, you could do something like: