summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2021-11-11 15:56:04 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2021-11-16 14:44:36 +0000
commit69cf633cef93b65cad50c180b9099a79ac5539f9 (patch)
tree86f9276b6a95f091d15c9c140c1bd344ecda660d /examples
parent439c429be2a79263d75f85f36073bf2e961c8953 (diff)
downloadqtwebchannel-69cf633cef93b65cad50c180b9099a79ac5539f9.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. Pick-to: 6.2 Change-Id: Iaa399b5d36f429d84e8844ec3813a65d729dd03a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/webchannel/chatclient-qml/chatclient-qml.qmlproject39
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"
+}