On Jan 7, 2014, at 10:26 PM, Roland Winklmeier <roland.m.winklme...@gmail.com> 
wrote:

> Hi all,
> 
> I have a quick question about the usage of the static method 
> QWindow::fromWinId. What exactly do I have to pass to the application to make 
> it work? I figured it already out for windows and linux/xcb, but I'm puzzled 
> about OS X.
> My first guess was it is the cocoa window ID, but passing it made the 
> application crash immediatly. After that I had a look into the cocoa QPA 
> plugin and it casts the WId to a NSView pointer. The guys in #macdev said 
> this will probably never work.
> 
> So can anybody explain me, how this is working on OS X?


Hi Roland,

WId is NSView* in the Cocoa QPA world. This is what QCocoaWindow::winId() 
returns when called by QWindow::winId().

That means that, on Mac, we use NSView as the native window class, including 
for top-level windows.

Best regards,

Dr. Gabriel de Dietrich
Senior Software Developer
qt.digia.com


_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to