<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- ios.qdoc --> <title>iOS | QtDoc 5.1</title> <link rel="stylesheet" type="text/css" href="style/offline.css" /> </head> <body> <div class="header" id="qtdocheader"></div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#getting-started">Getting Started</a></li> </ul> </div> <h1 class="title">iOS</h1> <span class="subtitle"></span> <!-- $$$ios_support.html-description --> <div class="descr"> <a name="details"></a> <p>Qt's iOS port supports the following:</p> <ul> <li>Widgets</li> <li>Graphics View</li> <li>QtQuick 1</li> <li>OpenGL</li> <li>Touch and Orientation events</li> </ul> <a name="getting-started"></a> <h2>Getting Started</h2> <p>Development and deployment is done using Xcode. The supported workflow is to maintain a <tt>.pro</tt> file based project, export it to Xcode (and re-export when the project setup changes), and then build and deploy using Xcode.</p> <p>To set up your development environment, do the following:</p> <ol class="1"> <li>Setup Xcode for development (acquire certificates, configure devices). Test and deploy one of the standard Xcode app templates to ensure that it works.</li> <li>Build the modules you intend to use, for device or simulator. Build instructions for Qt 5 is found <a href="http://qt-project.org/wiki/Building_Qt_5_from_Git">here</a>. 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:<pre class="cpp"><span class="operator">></span> <span class="operator">.</span><span class="operator">/</span>configure <span class="operator">-</span>xplatform unsupported<span class="operator">/</span>macx<span class="operator">-</span>ios<span class="operator">-</span>clang <span class="operator">-</span>developer<span class="operator">-</span>build <span class="operator">-</span>release <span class="operator">[</span><span class="operator">-</span>sdk iphonesimulator<span class="operator">]</span> <span class="operator">></span> make</pre> <p>If you want the latest sources, you can checkout the <tt>dev</tt> branch before building.</p> <p>You also need to build the Qt Script and <a href="qtquick-porting-qt5.html#qt-quick-1">Qt Quick 1</a> modules if you intend to use <a href="qtquick-porting-qt5.html#qt-quick-1">Qt Quick 1</a>. From the Qt 5 top directory, type:</p> <pre class="cpp"><span class="operator">></span> cd qtscript; <span class="operator">.</span><span class="operator">.</span><span class="operator">/</span>qtbase<span class="operator">/</span>bin<span class="operator">/</span>qmake; make; cd <span class="operator">.</span><span class="operator">.</span> <span class="operator">></span> cd qtquick1; <span class="operator">.</span><span class="operator">.</span><span class="operator">/</span>qtbase<span class="operator">/</span>bin<span class="operator">/</span>qmake; make; cd <span class="operator">.</span><span class="operator">.</span></pre> </li> </ol> <p>To check whether your environment is configured, try running the simple demo application. It lives in the <tt>git://github.com/msorvig/qt-ios-demo.git</tt> repository. Here is how you build it:</p> <ol class="1"> <li>../qtbase/bin/qmake</li> <li>open <tt>qt-ios-demo.xcodeproj</tt> in Xcode and build it like any other Xcode project.</li> </ol> <p>When you develop your own applications, you follow the same procedure.</p> </div> <!-- @@@ios_support.html --> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> </body> </html>