Comment définir QWidget couleur d'arrière-plan?

La ligne w.setBackgroundRole(QPalette.Base) dans le code ci-dessous n'a pas d'effet. Pourquoi? Comment puis-je régler ce problème?

import sys
from PySide.QtCore import *
from PySide.QtGui import *

app = QApplication(sys.argv)
w = QWidget()
w.setBackgroundRole(QPalette.Base)
w.show()
app.exec_()

OriginalL'auteur Johan Råde | 2012-09-29