From 63f103e05d4c72a1fa32c4adb5e288a58c5c9603 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Oct 2014 21:19:30 +0200 Subject: 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.) --- DOCS/client_api_examples/qtexample.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3