diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-09-16 17:24:17 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-09-23 12:36:38 (GMT) |
commit | 043e67c28171bc320b3dcb2e7c19db11fbd76c40 (patch) | |
tree | 5269fb48b0ed4a2039f315b99a3af98ff5b945b7 | |
parent | 970db998dc6586388ca66b8969433d55a675c0a6 (diff) | |
download | Qt-043e67c28171bc320b3dcb2e7c19db11fbd76c40.zip Qt-043e67c28171bc320b3dcb2e7c19db11fbd76c40.tar.gz Qt-043e67c28171bc320b3dcb2e7c19db11fbd76c40.tar.bz2 |
Temporary fix: mediaplayer top-level widget sets Qt::WA_TranslucentBackground to allow video to be visible on target
-rw-r--r-- | demos/mediaplayer/mediaplayer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |