iOS
Qt's iOS port supports the following:
- Widgets
- Graphics View
- QtQuick 1
- OpenGL
- Touch and Orientation events
Getting Started
Development and deployment is done using Xcode. The supported workflow is to maintain a .pro file based project, export it to Xcode (and re-export when the project setup changes), and then build and deploy using Xcode.
To set up your development environment, do the following:
- Setup Xcode for development (acquire certificates, configure devices). Test and deploy one of the standard Xcode app templates to ensure that it works.
- Build the modules you intend to use, for device or simulator. Build instructions for Qt 5 is found here. However, you don't need to build all of Qt 5. After cloning Qt 5, enter the qtbase directory and build from the command line like this:
> ./configure -xplatform unsupported/macx-ios-clang -developer-build -release [-sdk iphonesimulator] > make
If you want the latest sources, you can checkout the dev branch before building.
You also need to build the Qt Script and Qt Quick 1 modules if you intend to use Qt Quick 1. From the Qt 5 top directory, type:
> cd qtscript; ../qtbase/bin/qmake; make; cd .. > cd qtquick1; ../qtbase/bin/qmake; make; cd ..
To check whether your environment is configured, try running the simple demo application. It lives in the git://github.com/msorvig/qt-ios-demo.git repository. Here is how you build it:
- ../qtbase/bin/qmake
- open qt-ios-demo.xcodeproj in Xcode and build it like any other Xcode project.
When you develop your own applications, you follow the same procedure.