| 1 | /****************************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 | ** Contact: Qt Software Information (qt-info@nokia.com)
|
|---|
| 5 | **
|
|---|
| 6 | ** This file is part of the documentation of the Qt Toolkit.
|
|---|
| 7 | **
|
|---|
| 8 | ** $QT_BEGIN_LICENSE:LGPL$
|
|---|
| 9 | ** Commercial Usage
|
|---|
| 10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
|---|
| 11 | ** accordance with the Qt Commercial License Agreement provided with the
|
|---|
| 12 | ** Software or, alternatively, in accordance with the terms contained in
|
|---|
| 13 | ** a written agreement between you and Nokia.
|
|---|
| 14 | **
|
|---|
| 15 | ** GNU Lesser General Public License Usage
|
|---|
| 16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
|---|
| 17 | ** General Public License version 2.1 as published by the Free Software
|
|---|
| 18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
|---|
| 19 | ** packaging of this file. Please review the following information to
|
|---|
| 20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
|---|
| 21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|---|
| 22 | **
|
|---|
| 23 | ** In addition, as a special exception, Nokia gives you certain
|
|---|
| 24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
|---|
| 25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
|---|
| 26 | ** package.
|
|---|
| 27 | **
|
|---|
| 28 | ** GNU General Public License Usage
|
|---|
| 29 | ** Alternatively, this file may be used under the terms of the GNU
|
|---|
| 30 | ** General Public License version 3.0 as published by the Free Software
|
|---|
| 31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 32 | ** packaging of this file. Please review the following information to
|
|---|
| 33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
|---|
| 34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 35 | **
|
|---|
| 36 | ** If you are unsure which license is appropriate for your use, please
|
|---|
| 37 | ** contact the sales department at qt-sales@nokia.com.
|
|---|
| 38 | ** $QT_END_LICENSE$
|
|---|
| 39 | **
|
|---|
| 40 | ****************************************************************************/
|
|---|
| 41 |
|
|---|
| 42 | /*!
|
|---|
| 43 | \page wince-with-qt-introduction.html
|
|---|
| 44 |
|
|---|
| 45 | \title Windows CE - Introduction to using Qt
|
|---|
| 46 | \brief An introduction to Qt for Windows CE developers.
|
|---|
| 47 | \ingroup howto
|
|---|
| 48 | \ingroup qtce
|
|---|
| 49 |
|
|---|
| 50 | \tableofcontents
|
|---|
| 51 |
|
|---|
| 52 | \section1 Required tools
|
|---|
| 53 |
|
|---|
| 54 | In order to use Qt for Windows CE you need to have Visual Studio
|
|---|
| 55 | 2005 and at least one of the supported Windows CE/Mobile SDKs
|
|---|
| 56 | installed.
|
|---|
| 57 |
|
|---|
| 58 | We recommend the \e{Windows Mobile 5.0 SDK for Pocket PC} SDK available
|
|---|
| 59 | \l{http://www.microsoft.com/downloads/details.aspx?FamilyID=83a52af2-f524-4ec5-9155-717cbe5d25ed&DisplayLang=en}{here}.
|
|---|
| 60 |
|
|---|
| 61 | \section1 Installing Qt
|
|---|
| 62 |
|
|---|
| 63 | Follow the instructions found in \l{Installing Qt on Windows CE}.
|
|---|
| 64 |
|
|---|
| 65 | \section1 Building your own applications
|
|---|
| 66 |
|
|---|
| 67 | If you are new to Qt development, have a look at \l{How to Learn Qt}
|
|---|
| 68 | and \l{Tutorials}. In general there is little or no difference in
|
|---|
| 69 | developing Qt applications for Windows CE compared to any of the
|
|---|
| 70 | other platforms supported by Qt.
|
|---|
| 71 |
|
|---|
| 72 | Once you have a \c .pro file, there are two ways of building your
|
|---|
| 73 | application. You can either do it on the command line or inside of
|
|---|
| 74 | VS2005. To do it on the command line, simply write:
|
|---|
| 75 |
|
|---|
| 76 | \snippet doc/src/snippets/code/doc_src_wince-introduction.qdoc 0
|
|---|
| 77 |
|
|---|
| 78 | To build the project inside of VS2005, on the command line write:
|
|---|
| 79 |
|
|---|
| 80 | \snippet doc/src/snippets/code/doc_src_wince-introduction.qdoc 1
|
|---|
| 81 |
|
|---|
| 82 | then start VS2005 with the generated \c .vcproj or \c .sln file and
|
|---|
| 83 | select \e{Build project}.
|
|---|
| 84 |
|
|---|
| 85 | For more information on how to use qmake have a look at the \l
|
|---|
| 86 | {qmake Tutorial}.
|
|---|
| 87 |
|
|---|
| 88 | \section1 Running the application
|
|---|
| 89 |
|
|---|
| 90 | In order to run the application, it needs to be deployed on the
|
|---|
| 91 | Windows CE/Mobile device you want to test it for. This can either
|
|---|
| 92 | be done manually or automated using VS2005.
|
|---|
| 93 |
|
|---|
| 94 | To do it manually, simply copy the executable, the Qt \c{.dll}
|
|---|
| 95 | files needed for the application to run, and the C-runtime library
|
|---|
| 96 | into a folder on the device, and then click on the executable to
|
|---|
| 97 | start the program. You can either use the \e Explorer found in
|
|---|
| 98 | ActiveSync or the \e{Remote File Viewer} found in VS2005 to do
|
|---|
| 99 | this.
|
|---|
| 100 |
|
|---|
| 101 | VS2005 can do this step automatically for you as well. If you have
|
|---|
| 102 | built the project inside VS2005, simply select \e Deploy and then
|
|---|
| 103 | \e Debug to deploy and then run the application. You can change the
|
|---|
| 104 | device type by changing the \e{Target Device} specified in the
|
|---|
| 105 | VS2005 toolbar.
|
|---|
| 106 |
|
|---|
| 107 | Further information on deploying Qt applications for Windows can
|
|---|
| 108 | be found in the \l{Deploying an Application on Windows}
|
|---|
| 109 | {deployment document}.
|
|---|
| 110 | */
|
|---|