1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" />
<!-- wince-introduction.qdoc -->
<title>Qt 4.8: Windows CE - Introduction to using Qt</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li>Windows CE - Introduction to using Qt</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#required-tools">Required tools</a></li>
<li class="level1"><a href="#installing-qt">Installing Qt</a></li>
<li class="level1"><a href="#building-your-own-applications">Building your own applications</a></li>
<li class="level1"><a href="#running-the-application">Running the application</a></li>
</ul>
</div>
<h1 class="title">Windows CE - Introduction to using Qt</h1>
<span class="subtitle"></span>
<!-- $$$wince-with-qt-introduction.html-description -->
<div class="descr"> <a name="details"></a>
<a name="required-tools"></a>
<h2>Required tools</h2>
<p>In order to use Qt for Windows CE you need to have Visual Studio 2005 or 2008 and at least one of the supported Windows CE/Mobile SDKs installed. Note, that the Visual Studio 2008 Standard Edition doesn't come with Windows CE support. You will need the Professional Edition, if you're using Visual Studio 2008.</p>
<p>We recommend the <i>Windows Mobile 5.0 SDK for Pocket PC</i> SDK available <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=83a52af2-f524-4ec5-9155-717cbe5d25ed&DisplayLang=en">here</a>.</p>
<a name="installing-qt"></a>
<h2>Installing Qt</h2>
<p>Follow the instructions found in <a href="install-wince.html">Installing Qt for Windows CE</a>.</p>
<a name="building-your-own-applications"></a>
<h2>Building your own applications</h2>
<p>If you are new to Qt development, have a look at <a href="how-to-learn-qt.html">How to Learn Qt</a> and <a href="tutorials.html">Tutorials</a>. In general there is little or no difference in developing Qt applications for Windows CE compared to any of the other platforms supported by Qt.</p>
<p>Once you have a <tt>.pro</tt> file, there are two ways of building your application. You can either do it on the command line or inside of Visual Studio. To do it on the command line, simply write:</p>
<pre class="cpp"> qmake
nmake</pre>
<p>To build the project inside of Visual Studio, on the command line write:</p>
<pre class="cpp"> qmake -tp vc</pre>
<p>then start Visual Studio with the generated <tt>.vcproj</tt> or <tt>.sln</tt> file and select <i>Build project</i>.</p>
<p>For more information on how to use qmake have a look at the <a href="qmake-tutorial.html">qmake Tutorial</a>.</p>
<a name="running-the-application"></a>
<h2>Running the application</h2>
<p>In order to run the application, it needs to be deployed on the Windows CE/Mobile device you want to test it for. This can either be done manually or automated using Visual Studio.</p>
<p>To do it manually, simply copy the executable, the Qt <tt>.dll</tt> files needed for the application to run, and the C-runtime library into a folder on the device, and then click on the executable to start the program. You can either use the <i>Explorer</i> found in ActiveSync or the <i>Remote File Viewer</i> found in Visual Studio to do this.</p>
<p>Visual Studio can do this step automatically for you as well. If you have built the project inside Visual Studio, simply select <i>Deploy</i> and then <i>Debug</i> to deploy and then run the application. You can change the device type by changing the <i>Target Device</i> specified in the Visual Studio toolbar.</p>
<p>Further information on deploying Qt applications for Windows can be found in the <a href="deployment-windows.html">deployment document</a>.</p>
</div>
<!-- @@@wince-with-qt-introduction.html -->
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation 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>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
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>
|