Using QT widget from cocoa application



  • 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!



  • 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.



  • QT == QuickTime
    Qt == Qt.

    Use Qt instead of QT.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.