Using QT widget from cocoa application
-
wrote on 2 Jun 2012, 17:41 last edited by
Hello!
Is it possible to write (or reuse) some widget from QT in native Cocoa application? For example, when I don't need whole infrastructure, just one sort of "NSView" that I can
- import to xcode cocoa project (like static library or so)
- use it :-)
Thank you for your answers!
-
wrote on 11 Jun 2012, 19:55 last edited by
QMacNativeWidget and set QApplication::setAttribute(Qt::AA_MacPluginApplication) prior to instantiating the qapplication.
QMacNativeWidget docs has an example you can try.
If you go this route, make sure to search the qt bug tracker for broken areas using this approach.
-
wrote on 16 Jun 2012, 19:06 last edited by
QT == QuickTime
Qt == Qt.Use Qt instead of QT.