From b836a2295c7abd95ecdadec81ea83312fcdebfc0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Oct 2014 21:18:01 +0200 Subject: DOCS/client_api_examples: qtexample: embedding works on Cocoa --- DOCS/client_api_examples/qtexample.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DOCS/client_api_examples/qtexample.cpp b/DOCS/client_api_examples/qtexample.cpp index b4ec6e6630..0cb02421e2 100644 --- a/DOCS/client_api_examples/qtexample.cpp +++ b/DOCS/client_api_examples/qtexample.cpp @@ -56,8 +56,7 @@ MainWindow::MainWindow(QWidget *parent) : throw "can't create mpv instance"; // Create a video child window. Force Qt to create a native window, and - // pass the window ID to the mpv wid option. This doesn't work on OSX, - // because Cocoa doesn't support this form of embedding. + // 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_NativeWindow); -- cgit v1.2.3