summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/doc/src/resource-system.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/doc/src/resource-system.qdoc b/src/corelib/doc/src/resource-system.qdoc
index 4c24320851..91ce8afcf8 100644
--- a/src/corelib/doc/src/resource-system.qdoc
+++ b/src/corelib/doc/src/resource-system.qdoc
@@ -198,6 +198,10 @@
clients of your library will only link in the resources if they use
the feature of the library that depends on them.
+ Note: As the resource initializers generated by rcc are declared in the
+ global namespace, your calls to \l Q_INIT_RESOURCE() also need to be done
+ outside of any namespace.
+
If the library includes resources that are not used internally, but
instead exposed to clients of the library, the initialization needs
to happen in the application code. For example: