From 5a0dcda171772e75eeb22f719cec36ef8efe355d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 30 Nov 2022 14:45:48 +0100 Subject: CMake: Allow contents of resources to be replaced by empty files This makes it possible to process QML files using qmlcachegen, and retain the file nodes in the resource file system, but remove their actual content from the binary. To do so, you need to mark your files with the QT_DISCARD_FILE_CONTENTS source file property. Fixes: QTBUG-87676 Fixes: QTBUG-103481 Fixes: QTBUG-102024 Fixes: QTBUG-102785 Change-Id: I93d5a2bfca1739ff1e0f74c8082eb8aa451b9815 Reviewed-by: Alexandru Croitor Reviewed-by: hjk --- src/corelib/doc/snippets/code/doc_src_resources.qdoc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/doc/snippets') diff --git a/src/corelib/doc/snippets/code/doc_src_resources.qdoc b/src/corelib/doc/snippets/code/doc_src_resources.qdoc index a2e515ce03..f5a12ee86a 100644 --- a/src/corelib/doc/snippets/code/doc_src_resources.qdoc +++ b/src/corelib/doc/snippets/code/doc_src_resources.qdoc @@ -26,3 +26,7 @@ //! [3] rcc -binary myresource.qrc -o myresource.rcc //! [3] + +//! [4] +Button.qml +//! [4] -- cgit v1.2.3