Swift code in a Qt application
-
wrote on 19 Mar 2019, 09:09 last edited by Nelson_Piquet
I know how to include and build
objective-c
sources in myQtApplication
. GenerallyMyQtApplication.pro
file includes objective-c source.mm
files like this which does the trick and its quite easy. Thanks to the Qt folks.# MyQtApplication.pro ios { CONFIG += objective_c OBJECTIVE_SOURCES += SomeObjectiveCSource.mm HEADERS += SomeObjectiveCSource.hpp }
Is there way to include .swift files as well? And hence include, build and call Swift code from C++ classes in a QtApplication? Does Qt officially support it now? Is there a concrete example I can look into?
I am using Qt 5.12 commercial version.
-
Hi,
Did you already saw this project ?
1/2