Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QFile f(":path/to/style.qss");
- if (!f.exists())
- {
- printf("Unable to set stylesheet, file not found\n");
- }
- else
- {
- f.open(QFile::ReadOnly | QFile::Text);
- QTextStream ts(&f);
- qApp->setStyleSheet(ts.readAll());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement