From 043e67c28171bc320b3dcb2e7c19db11fbd76c40 Mon Sep 17 00:00:00 2001 From: Gareth Stockwell Date: Wed, 16 Sep 2009 18:24:17 +0100 Subject: Temporary fix: mediaplayer top-level widget sets Qt::WA_TranslucentBackground to allow video to be visible on target --- demos/mediaplayer/mediaplayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demos/mediaplayer/mediaplayer.cpp b/demos/mediaplayer/mediaplayer.cpp index 4bbe413..8ccab77 100644 --- a/demos/mediaplayer/mediaplayer.cpp +++ b/demos/mediaplayer/mediaplayer.cpp @@ -155,6 +155,10 @@ MediaPlayer::MediaPlayer(const QString &filePath) : m_videoWindow.setObjectName("videoWindow"); m_videoWidget->setObjectName("videoWidget"); + // setWindowTitle triggers creation of the window surface, so we set + // transparency here + setAttribute(Qt::WA_TranslucentBackground, true); + setWindowTitle(tr("Media Player")); setContextMenuPolicy(Qt::CustomContextMenu); m_videoWidget->setContextMenuPolicy(Qt::CustomContextMenu); -- cgit v0.12