[Qt-interest] newbie qt on macintosh question

Sergey Uspensky pgf368 at gmail.com
Mon Feb 2 14:10:08 CET 2009


Thank you Richard!!

This seem like what I needed! So I can embed a QWidget inside a Carbon
window, is that right? thats cool!

Now the problem is to configure 4.5 beta properly) since there is no such
widget in 4.4


2009/2/2 Richard <richardmg at trolltech.com>

> > Dear list!
> >
> > Im developing an application for Mac OS 10.5 using Qt 4.4.
> >
> > So I've found in Qt sources a function
> >
> >      qt_mac_window_for(QWidget*)
> >
> If you wan't to use the public API, you could also do:
> HIViewGetWindow((HIViewRef)myWidget->winId());
> > My question is - are there any possibilities to do the opposite?
> >
> > If I manually create window in Carbon API and have a WindowRef for
> > it. Can I cast it to (QWidget*) somehow?
> >
> No, but you might find the following interresting:
> http://doc.trolltech.com/main-snapshot/qmacnativewidget.html
>
> -Richard
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090202/7c7693aa/attachment.html 


More information about the Qt-interest-old mailing list