1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
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 [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | /****************************************************************************
|
---|
43 | **
|
---|
44 | ** Documentation on deploying Qt.
|
---|
45 | **
|
---|
46 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
47 | ** Contact: Qt Software Information ([email protected])
|
---|
48 | **
|
---|
49 | ** This file is part of the Qt GUI Toolkit.
|
---|
50 | ** EDITIONS: FREE, PROFESSIONAL, ENTERPRISE
|
---|
51 | **
|
---|
52 | ****************************************************************************/
|
---|
53 |
|
---|
54 | /*
|
---|
55 | \page distributingqt.html
|
---|
56 |
|
---|
57 | \title Deploying Qt Applications
|
---|
58 |
|
---|
59 | This document lists the platform-specific files needed to distribute
|
---|
60 | Qt applications. We do not include any compiler-specific files that
|
---|
61 | may also be required. (See also, \link winsystem.html Window
|
---|
62 | System-specific Notes\endlink.)
|
---|
63 |
|
---|
64 | \tableofcontents
|
---|
65 |
|
---|
66 | Also see the "deployment" articles in
|
---|
67 | \e{\link http://doc.trolltech.com/qq/ Qt Quarterly\endlink}:
|
---|
68 | \list
|
---|
69 | \i \link http://doc.trolltech.com/qq/qq09-mac-deployment.html
|
---|
70 | Deploying Applications on Mac OS X\endlink
|
---|
71 | \i \link http://doc.trolltech.com/qq/qq10-windows-deployment.html
|
---|
72 | Deploying Applications on Windows\endlink
|
---|
73 | \i \link http://doc.trolltech.com/qq/qq11-unix-deployment.html
|
---|
74 | Deploying Applications on X11\endlink
|
---|
75 | \endlist
|
---|
76 |
|
---|
77 | \section1 Static Qt Applications
|
---|
78 |
|
---|
79 | To distribute static Qt applications, you need the following file for
|
---|
80 | all platforms:
|
---|
81 |
|
---|
82 | \list
|
---|
83 | \i your application's executable
|
---|
84 | \endlist
|
---|
85 |
|
---|
86 | \section1 Dynamic Qt Applications
|
---|
87 |
|
---|
88 | To distribute dynamic Qt applications, you will need the following
|
---|
89 | files for all platforms:
|
---|
90 |
|
---|
91 | \list
|
---|
92 | \i application executable
|
---|
93 | \i the Qt library
|
---|
94 | \endlist
|
---|
95 |
|
---|
96 | The Qt library must either be in the same directory as the application
|
---|
97 | executable or in a directory which is included in the system library
|
---|
98 | path.
|
---|
99 |
|
---|
100 | The library is provided by the following platform specific files:
|
---|
101 |
|
---|
102 | \table
|
---|
103 | \header \i Platform \i File
|
---|
104 | \row \i Windows \i \c qt[version].dll
|
---|
105 | \row \i Unix/Linux \i \c libqt[version].so
|
---|
106 | \row \i Mac \i \c libqt[version].dylib
|
---|
107 | \endtable
|
---|
108 |
|
---|
109 | \e version includes the three version numbers.
|
---|
110 |
|
---|
111 | \section2 Distributing Plugins
|
---|
112 |
|
---|
113 | You must include any plugin files required by the application.
|
---|
114 |
|
---|
115 | Plugins must be put into a subdirectory under a directory known to
|
---|
116 | Qt as a plugin directory. The subdirectory must have the name of the
|
---|
117 | plugin category (e.g. \c styles, \c sqldrivers, \c designer, etc.).
|
---|
118 |
|
---|
119 | Qt searches in the following directories for plugin categories:
|
---|
120 |
|
---|
121 | \list
|
---|
122 | \i Application specific plugin paths
|
---|
123 | \i Build-directory of Qt
|
---|
124 | \i The application directory
|
---|
125 | \endlist
|
---|
126 |
|
---|
127 | Application specific plugin paths can be added using
|
---|
128 | QCoreApplication::addLibraryPath(). The build-directory of Qt is hardcoded
|
---|
129 | in the Qt library and can be changed as a part of the installation
|
---|
130 | process.
|
---|
131 |
|
---|
132 | \section1 Dynamic Dialogs
|
---|
133 |
|
---|
134 | For dynamic dialogs if you use QWidgetFactory, you need the following
|
---|
135 | files for all platforms:
|
---|
136 |
|
---|
137 | \list
|
---|
138 | \i The same files as used for dynamic Qt applications
|
---|
139 | \i The QUI Library
|
---|
140 | \endlist
|
---|
141 |
|
---|
142 | The QUI library is provided by the following platform specific files:
|
---|
143 | \table
|
---|
144 | \header \i Platform \i File
|
---|
145 | \row \i Windows \i\c qui.lib
|
---|
146 | \row \i Unix/Linux \i\c libqui.so
|
---|
147 | \row \i Mac \i \c libqui.dylib
|
---|
148 | \endtable
|
---|
149 |
|
---|
150 | The QUI library must either be in the same directory as the
|
---|
151 | application executable or in a directory which is included in the
|
---|
152 | system library path.
|
---|
153 |
|
---|
154 | */
|
---|