summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/mediaplayer/mediaplayer.cpp4
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);