Qt 6.5 Cmake iOS Objective-C Example
Solved
Qt 6
-
Hello, how can I use Objective C with Qt6.5 cmake, can you give an example for this? For example, how to make a simple example like Objective C write hello to the screen when QML calls a function?
-
Hi,
I haven't done it yet with cmake but I think you have to start by enabling the language in addition to C++.
One thing that you will have to take into account is that you need Objective-C++ in order to interact with your application and not Objective-C alone. Basically you create a C++ class that will wrap the Objective-C implementation. Qt does that for the macOS and iOS backends.
Hope it helps
-