Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kambala-decapitator/qt-inside-ios-swift-interop
Embed Qt app inside native iOS Swift app without Objective-C++ wrapper
https://github.com/kambala-decapitator/qt-inside-ios-swift-interop
cxx interop qt6 swift xcode
Last synced: 3 months ago
JSON representation
Embed Qt app inside native iOS Swift app without Objective-C++ wrapper
- Host: GitHub
- URL: https://github.com/kambala-decapitator/qt-inside-ios-swift-interop
- Owner: kambala-decapitator
- License: mit
- Created: 2024-05-31T15:50:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T07:57:37.000Z (7 months ago)
- Last Synced: 2024-09-29T07:41:49.960Z (3 months ago)
- Topics: cxx, interop, qt6, swift, xcode
- Language: CMake
- Homepage: https://mobiusconf.com/talks/c9d0d97b1f794d55b80e3c14a1aa26a1/
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qt-inside-ios-swift-interop
Embed Qt Widgets app inside native iOS Swift app without Objective-C++ wrapper using the Swift-C++ interop.The example is based on the Objective-C++ example: https://github.com/kambala-decapitator/qt-inside-ios-native
## Building
The project has been tested with Xcode 15.2 / 15.4 and Qt 6.6.3.First, make sure that Xcode command line tools are pointing to an Xcode installation, check with `xcode-select -p`. To change that, use either `sudo xcode-select -s /path/to/Xcode` or set `DEVELOPER_DIR` environment variable.
Call the following commands from the repo root directory. Building and launching on device (or simulator) is done from Xcode. Codesigning parameters (required to run on a device) for CMake are omitted, but can also be configured manually in Xcode.
```bash
# set the variable to your Qt 6 installation
QTDIR=~/dev/Qt-libs/6.6.3/iosmkdir build
cd build"$QTDIR/bin/qt-cmake" ..
open interop-qt.xcodeproj
```