The library helps to make use of native macOS controls in a Qt app. On Windows (and others?) it's supposed to provide a decent fallback.
Compatible with Qt 5 and Qt 6.
Many of those controls are used in our Macs Fan Control and AnyToISO apps.
The code is far from being ideal so you're welcome to contribute.
To compile on macOS we use Qt Creator and Visual Studio 2022 Community on Windows
Being a static library by default, qcocoacontrols requires the '-ObjC' flag to be passed to the linker when linking your target app. Otherwise it will crash with something like
+[NSImage imageFromQIcon:]: unrecognized selector sent to class 0x7fff8d90cbb0
The reason for that are customizations for the existing NSImage class and bringing those to the target app is not enabled by default (More info). Actually in our case it wasn't actually required when using Qt 5.15 but for Qt 5.6 - yes. Adding linker flags can be done by appending them to LIBS in your .pro file:
LIBS += -Llib_path -lqcocoacontrols -ObjC