Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. QFile f(":path/to/style.qss");
  2. if (!f.exists())
  3. {
  4. printf("Unable to set stylesheet, file not found\n");
  5. }
  6. else
  7. {
  8. f.open(QFile::ReadOnly | QFile::Text);
  9. QTextStream ts(&f);
  10. qApp->setStyleSheet(ts.readAll());
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement