Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

Windows CE - Introduction to using Qt

Required tools

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.

We recommend the Windows Mobile 5.0 SDK for Pocket PC SDK available here.

Installing Qt

Follow the instructions found in Installing Qt for Windows CE.

Building your own applications

If you are new to Qt development, have a look at How to Learn Qt and Tutorials. 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.

Once you have a .pro 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:

 qmake
 nmake

To build the project inside of Visual Studio, on the command line write:

 qmake -tp vc

then start Visual Studio with the generated .vcproj or .sln file and select Build project.

For more information on how to use qmake have a look at the qmake Tutorial.

Running the application

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.

To do it manually, simply copy the executable, the Qt .dll 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 Explorer found in ActiveSync or the Remote File Viewer found in Visual Studio to do this.

Visual Studio can do this step automatically for you as well. If you have built the project inside Visual Studio, simply select Deploy and then Debug to deploy and then run the application. You can change the device type by changing the Target Device specified in the Visual Studio toolbar.

Further information on deploying Qt applications for Windows can be found in the deployment document.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web