summaryrefslogtreecommitdiff
path: root/doc/src/howtos
diff options
context:
space:
mode:
authorDebao Zhang <hello@debao.me>2013-03-28 10:11:56 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-02 10:12:35 +0200
commitede3e108335e7bd12c6d764e54dba76bb28b4d55 (patch)
tree11ae4258f3ca81a6a2d9d71544478e69efbd651b /doc/src/howtos
parent988a8dbe978500b4709ea0baea4d6038abc0f1e0 (diff)
downloadqtdoc-ede3e108335e7bd12c6d764e54dba76bb28b4d55.tar.gz
Doc: Update "Setting the Application Icon on Windows"
Change-Id: I5f0f8396b1af3aa8ce03264f3291a1a7ef85c408 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'doc/src/howtos')
-rw-r--r--doc/src/howtos/appicon.qdoc28
1 files changed, 17 insertions, 11 deletions
diff --git a/doc/src/howtos/appicon.qdoc b/doc/src/howtos/appicon.qdoc
index 310e90c4..540ee5cd 100644
--- a/doc/src/howtos/appicon.qdoc
+++ b/doc/src/howtos/appicon.qdoc
@@ -53,23 +53,29 @@
the icon editor.)
Store the ICO file in your application's source code directory,
- for example, with the name \c myappico.ico. Then, create a text
- file called, say, \c myapp.rc in which you put a single line of
- text:
+ for example, with the name \c myappico.ico.
+
+ Then, assuming you are using qmake to generate your makefiles,
+ you only need to add a single line to your \c .pro project file:
+
+ \snippet doc/src/snippets/code/doc_src_appicon.pro 0
+
+ Finally, regenerate your makefile and your application. The \c .exe file
+ will now be represented by your icon in Explorer.
+
+ However, if you already have an \c .rc file, for example, with the name
+ \c myapp.rc, which you want to reuse, the following two steps will be
+ required. First, put a single line of text to the \c myapp.rc file:
\snippet doc/src/snippets/code/doc_src_appicon.qdoc 0
- Finally, assuming you are using \c qmake to generate your
- makefiles, add this line to your \c myapp.pro file:
+ Then, add this line to your \c myapp.pro file:
\snippet doc/src/snippets/code/doc_src_appicon.pro 1
- Regenerate your makefile and your application. The \c .exe file
- will now be represented with your icon in Explorer.
-
- If you do not use \c qmake, the necessary steps are: first, run
- the \c rc program on the \c .rc file, then link your application
- with the resulting \c .res file.
+ If you do not use \c qmake, the necessary steps are: first, create an
+ \c .rc file and run the \c rc or \c windres program on the \c .rc file,
+ then link your application with the resulting \c .res file.
\section1 Setting the Application Icon on Mac OS X