summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/src
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2022-06-15 13:09:14 +0200
committerCristian Adam <cristian.adam@qt.io>2022-06-16 21:01:04 +0000
commit7037f4620fb59b669d32fbce0ef79aabe38a716a (patch)
treeb51734471e136f4860859580ef251c1e5e69d6d4 /src/corelib/doc/src
parentb152c3b50d54577ea40e5d59759c1155f45cf191 (diff)
Doc: Document how to treat qt_add_big_resources args as source files
The arguments to qt_add_big_resources are not known to CMake as source files. They need to be added explicitly to a CMake target in order for Qt Creator to treat them as source files and in the case of a qrc file to expand the contents in the project view. Fixes: QTBUG-104320 Pick-to: 6.4 6.3 Change-Id: Iea755d998e8f9814a82983272731b0c654f80644 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/doc/src')
-rw-r--r--src/corelib/doc/src/cmake/qt_add_big_resources.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/doc/src/cmake/qt_add_big_resources.qdoc b/src/corelib/doc/src/cmake/qt_add_big_resources.qdoc
index 07e75f6fc5..8cb78cf9c1 100644
--- a/src/corelib/doc/src/cmake/qt_add_big_resources.qdoc
+++ b/src/corelib/doc/src/cmake/qt_add_big_resources.qdoc
@@ -34,6 +34,10 @@ generates object files (\c .o, \c .obj) files instead of C++ source code.
This allows to embed bigger resources, where compiling to C++ sources and then
to binaries would be too time consuming or memory intensive.
+\note The \c{file1.qrc} will not be treated as a source file by Qt Creator. It
+needs to be added as a source file to a CMake target and have the property
+\c{SKIP_AUTORCC} set to \c{ON}.
+
\section1 Arguments
You can set additional \c{OPTIONS} that should be added to the \c{rcc} calls.