Qt 6.11 is out! See what's new in the release
blog
Using QT widget from cocoa application
General and Desktop
3
Posts
3
Posters
1.7k
Views
1
Watching
-
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.