Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.0
-
None
Description
https://doc.qt.io/qt-6/resources.html#explicit-loading-and-unloading-of-embedded-resources
This section can possibly confuse the readers such as:
- Given in the code snippet, Q_INIT_RESOURCE() is called in a user-defined class, should we call Q_INIT_RESOURCE() everytime we want to access particular resources, such as .png files?
- If so, doesn't it lead to so many Q_INIT_RESOURCE() calls? -> less maintenability
- Also, doesn't it lead to the situation where the developers need to put related resource files such as .png files into separate .qrc files just to make sure they can be used as an argument for Q_INIT_RESOURCE() in many different places without overwrapping eath other? -> more effort and less maintenability
- Can we just call Q_INITI_RESOURCE() in one place and that's it? if so, where is it? <-- hopefully, showing this with an example in the doc is the best.