In my widget, I can do something like this:
MyWindow::MyWindow(QWidget *parent) : QWidget(parent) { ui.setupUi(this); setStyleSheet("QWidget { background-color: red }");
This will set the widget's red background.
I have a QSS file in my resources. How can I instruct my widget to take the contents of a stylesheet instead of using qss syntax as a parameter?
qt
Jasongenx
source share