Hi Gabriel, thanks for your answer. This clarifies the second point in the documentation "Creates a local representation of a window created by another process or by using native libraries below Qt.". But am I right with my assumption, that the first statement "... created by another process ... " is not supported on OS X? I cannot imagine a way to get a valid NSView* from a different process.
Cheers 2014/1/8 deDietrich Gabriel <gabriel.dedietr...@digia.com> > 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 >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest