[PyQt] QWidget.setPalette with QPixmap for background works but not for Phonon.VideoWidget..

Marcell Mars marcell.mars at gmail.com
Sun Oct 26 11:58:53 GMT 2008


i can change Phonon.VideoWidget background color through
setStyleSheet("QWidget{background-color:blue;"})

but as said in subject can't do that with:

palet = QPalette()
palet.setBrush(QPalette.Background, QBrush(QPixmap("some.png"))
myPhononVideoWidget.setPalette(palet)

the equivalent works for QWidget....

any ideas how to get background image on Phonon.VideoWidget. i still
don't know how to get gapless video playback with phonon so this seems
as poor man's one ;)


More information about the PyQt mailing list