summaryrefslogtreecommitdiffstats
path: root/doc/src/deployment.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/deployment.qdoc')
-rw-r--r--doc/src/deployment.qdoc67
1 files changed, 46 insertions, 21 deletions
diff --git a/doc/src/deployment.qdoc b/doc/src/deployment.qdoc
index 496fe81..d9f7c1a 100644
--- a/doc/src/deployment.qdoc
+++ b/doc/src/deployment.qdoc
@@ -89,7 +89,8 @@
of Qt, you get Qt as a shared library.
The disadvantage with the shared library approach is that you
- will get more files to deploy.
+ will get more files to deploy. For more information, see
+ \l{sharedlibrary.html}{Creating Shared Libraries}.
\section1 Deploying Qt's Libraries
@@ -110,13 +111,14 @@
\o \l {QtNetwork}
\o \l {QtOpenGL}
\o \l {QtScript}
- \o \l {QtSql}
+ \o \l {QtScriptTools}
\row
+ \o \l {QtSql}
\o \l {QtSvg}
\o \l {QtWebKit}
\o \l {QtXml}
- \o \l {QtXmlPatterns}
\row
+ \o \l {QtXmlPatterns}
\o \l {Phonon Module}{Phonon}
\o \l {Qt3Support}
\endtable
@@ -177,11 +179,13 @@
Please see \l{QtWebKit Module#License Information}{the QtWebKit module
documentation} for more information.
- \row \o Phonon \o Phonon
+ \row \o \l{Phonon Module}{Phonon} \o Phonon
\o Phonon relies on the native multimedia engines on different platforms.
Phonon itself is licensed under the GNU LGPL version 2. Please see
\l{Phonon Module#License Information}{the Phonon module documentation}
- for more information.
+ for more information on licensing and the
+ \l{Phonon Overview#Backends}{Phonon Overview} for details of the backends
+ in use on different platforms.
\endtable
\section1 Platform-Specific Notes
@@ -878,30 +882,44 @@
HTML pages from the World Wide Web, you should include all text codec
plugins to support as many HTML encodings possible.
- The search path for Qt plugins (as well as a few other paths) is
- hard-coded into the QtCore library. By default, the first plugin
- search path will be hard-coded to be a \c plugins subdirectory of
- the Qt installation:
-
- \snippet doc/src/snippets/code/doc_src_deployment.qdoc 25
-
- Pre-determined paths like this one have certain disadvantages.
- For example, they may not exist on the target machine. For that
- reason you need to examine various alternatives to make sure that
- the Qt plugins are found:
+ The search path for Qt plugins is hard-coded into the QtCore library.
+ By default, the plugins subdirectory of the Qt installation is the first
+ plugin search path. However, pre-determined paths like the default one
+ have certain disadvantages. For example, they may not exist on the target
+ machine. For that reason, you need to examine various alternatives to make
+ sure that the Qt plugins are found:
\list
- \o \l{qt-conf.html}{Using \c qt.conf}. This is the recommended
- approach since it provides the most flexibility.
-
+ \o \l{qt-conf.html}{Using \c qt.conf}. This approach is the recommended
+ if you have executables in different places sharing the same plugins.
+
\o Using QApplication::addLibraryPath() or
- QApplication::setLibraryPaths().
+ QApplication::setLibraryPaths(). This approach is recommended if you only
+ have one executable that will use the plugin.
\o Using a third party installation utility to change the
hard-coded paths in the QtCore library.
\endlist
+
+ If you add a custom path using QApplication::addLibraryPath it could
+ look like this:
+
+ \snippet doc/src/snippets/code/doc_src_deployment.qdoc 54
+
+ Then qApp->libraryPaths() would return something like this:
+
+ "C:/customPath/plugins "
+ "C:/Qt/4.5.0/plugins"
+ "E:/myApplication/directory/"
+
+ The executable will look for the plugins in these directories and
+ the same order as the QStringList returned by qApp->libraryPaths().
+ The newly added path is prepended to the qApp->libraryPaths() which
+ means that it will be searched through first. However, if you use
+ qApp->setLibraryPaths(), you will be able to determend which paths
+ and in which order they will be searched.
The \l{How to Create Qt Plugins} document outlines the issues you
need to pay attention to when building and deploying plugins for
@@ -1105,7 +1123,7 @@
\snippet doc/src/snippets/code/doc_src_deployment.qdoc 38
For the Qt frameworks, the first line (i.e. \c
- {path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui (compatibility
+ {path/to/Qt/lib/QtGui.framework/Versions/4/QtGui (compatibility
version 4.0.0, current version 4.0.1)}) becomes the framework's
identification name which is used by the dynamic linker (\c dyld).
@@ -1448,4 +1466,11 @@
\o The accessibility plugin is always deployed.
\o Accessibility for Qt3Support is deployed if the application uses the Qt3Support module.
\endlist
+
+ macdeployqt supports the following options:
+ \list
+ \o -no-plugins: Skip plugin deployment
+ \o -dmg : Create a .dmg disk image
+ \o -no-strip : Don't run 'strip' on the binaries
+ \endlist
*/