diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2021-11-11 15:56:04 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-11-16 18:55:27 +0000 |
commit | 25504998f6b74acf5bf9c4089ed824fff7b377b0 (patch) | |
tree | 6b38149439def226ef292875dae6b8b97cc8a07f | |
parent | f0b28adc46c520990f8482cbb2669e0b462b08c0 (diff) | |
download | qtwebchannel-25504998f6b74acf5bf9c4089ed824fff7b377b0.tar.gz |
Add .qmproject file for examples containing .ui.qml files
If an example contains ui.qml it should also have
a .qmlproject file for Qt Design Studio.
Change-Id: Iaa399b5d36f429d84e8844ec3813a65d729dd03a
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
(cherry picked from commit 69cf633cef93b65cad50c180b9099a79ac5539f9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/webchannel/chatclient-qml/chatclient-qml.qmlproject | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/webchannel/chatclient-qml/chatclient-qml.qmlproject b/examples/webchannel/chatclient-qml/chatclient-qml.qmlproject new file mode 100644 index 0000000..3be8d04 --- /dev/null +++ b/examples/webchannel/chatclient-qml/chatclient-qml.qmlproject @@ -0,0 +1,39 @@ +import QmlProject + +Project { + mainFile: "MainForm.ui.qml" + + /* Include .qml, .js, and image files from current directory and subdirectories */ + QmlFiles { + directory: "." + } + + JavaScriptFiles { + directory: "." + } + + ImageFiles { + directory: "." + } + + Files { + filter: "qmldir" + directory: "." + } + + Files { + filter: "*.ttf;*.otf" + } + + Environment { + QT_AUTO_SCREEN_SCALE_FACTOR: "1" + } + + qt6Project: true + + /* List of plugin directories passed to QML runtime */ + importPaths: [ ".", "imports" ] + + /* Required for deployment */ + targetDirectory: "/opt/chatclient" +} |