PDA

View Full Version : How to set a background in a Phonon VideoPlayer ?



slimIT
24th October 2010, 00:09
Hi,

i have tried StyleSheets and setBackgroundRole() on the Phonon videoPlayer but still can't set a default background. I want to set it when the player is stopped or when it plays a sound file so is that possible ?

Thanks.

wysota
24th October 2010, 22:54
I'd use QStackedWidget with one page showing a VideoWidget and another showing whatever else you want to be visible when not showing a video. Then simply flip pages when appropriate.