Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from PySide.QtCore import *
- from PySide.QtGui import *
- app = QApplication(sys.argv)
- w = QWidget()
- w.setBackgroundRole(QPalette.Base)
- w.show()
- app.exec_()
- p = w.palette()
- p.setColor(w.backgroundRole(), Qt.red)
- w.setPalette(p)
Add Comment
Please, Sign In to add comment