summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-16 21:19:30 +0200
committerwm4 <wm4@nowhere>2014-10-16 21:19:30 +0200
commit63f103e05d4c72a1fa32c4adb5e288a58c5c9603 (patch)
treebce9af92920fb751d68cebff159437c0f256825c /DOCS
parentb836a2295c7abd95ecdadec81ea83312fcdebfc0 (diff)
downloadmpv-63f103e05d4c72a1fa32c4adb5e288a58c5c9603.tar.bz2
mpv-63f103e05d4c72a1fa32c4adb5e288a58c5c9603.tar.xz
DOCS/client_api_examples: qtexample: set a magic Qt flag
Otherwise, other magic Qt stuff can be magically broken. (No, I don't know the real reasons for this.)
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/client_api_examples/qtexample.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/DOCS/client_api_examples/qtexample.cpp b/DOCS/client_api_examples/qtexample.cpp
index 0cb02421e2..b5a050572c 100644
--- a/DOCS/client_api_examples/qtexample.cpp
+++ b/DOCS/client_api_examples/qtexample.cpp
@@ -59,6 +59,7 @@ MainWindow::MainWindow(QWidget *parent) :
// pass the window ID to the mpv wid option. Works on: X11, win32, Cocoa
mpv_container = new QWidget(this);
setCentralWidget(mpv_container);
+ mpv_container->setAttribute(Qt::WA_DontCreateNativeAncestors);
mpv_container->setAttribute(Qt::WA_NativeWindow);
// If you have a HWND, use: int64_t wid = (intptr_t)hwnd;
int64_t wid = mpv_container->winId();