aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>2015-08-03 14:44:44 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2015-08-04 08:12:54 +0000
commitad332762df8f7695888fb39afbbd8cb0fd60b6b8 (patch)
treea7565734dc49b7bf76acbce11f26d2d9033e19b2
parent8ac76922d20b5aa698b02fda6231aceb2434a500 (diff)
Doc: update info about QML export scripts
- Switch the download links to Gerrit - Describe how to edit the scripts to create files that are compatible with Qt Quick Designer - Remove notes about adding Python support for Windows, because that now seems to work out of the box Change-Id: I88f822e1d72658818b140208c264af24ab671b28 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
-rw-r--r--doc/src/qtquick/qtquick-exporting-qml.qdoc45
1 files changed, 28 insertions, 17 deletions
diff --git a/doc/src/qtquick/qtquick-exporting-qml.qdoc b/doc/src/qtquick/qtquick-exporting-qml.qdoc
index 5172e2a950..8a7957713b 100644
--- a/doc/src/qtquick/qtquick-exporting-qml.qdoc
+++ b/doc/src/qtquick/qtquick-exporting-qml.qdoc
@@ -39,7 +39,12 @@
\note GIMP does not support grouping, and therefore, each layer is exported
as an item in GIMP.
- You can open the QML file in \QC for editing. If you edit the file in Adobe
+ You can open the QML file in \QC for editing. By default, the export scripts
+ generate Qt Quick 1 files. To edit the files in \QMLD, change the import
+ statements in the export scripts to import Qt Quick 2. Or, you can change
+ the import statement in each file after generating the files.
+
+ If you edit the file in Adobe
Photoshop and export it to the same directory again, any changes you made in
\QC are overwritten. However, you can re-export graphical assets without
recreating the QML code.
@@ -114,13 +119,21 @@
\list 1
- \li Download the export script, \e{Export QML.jx}, from
- \l{https://code.qt.io/cgit/qt-labs/photoshop-qmlexporter.git/}
- {code.qt.io}.
+ \li Clone the repository that contains the export script,
+ \e{Export QML.jx}, from
+ \l{https://codereview.qt-project.org/#/admin/projects/qt-labs/photoshop-qmlexporter}
+ {Qt Code Review}.
\note Read the README.txt file in the repository for latest
information about the script.
+ \li To generate QML files that you can edit in \QMLD, edit the import
+ statement in \e {Export QML.jx}. For example:
+
+ \code
+ qmlfile.write("import QtQuick 2.5\n");
+ \endcode
+
\li Double-click the export script to add the export command to the
\uicontrol Scripts menu. You can also copy the script file to the Adobe
Photoshop scripts directory (typically, \c{\Presets\Scripts} in the
@@ -160,21 +173,12 @@
The script has been tested to work on GIMP 2. You can download GIMP 2 from
\l{http://www.gimp.org/downloads/}{GIMP Downloads}.
- To use the export script on Microsoft Windows, you also need to install the
- GIMP Python extension (Python, PyCairo, PyGobject, PyGTK). However, GIMP is
- not officially supported on Windows, so we cannot guarantee that this will
- work.
-
\list 1
- \li On Microsoft Windows, you must first add Python support to your GIMP
- installation, as instructed in
- \l {http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows}
- {Tutorial: Installing Python for GIMP 2.6 (Windows)}.
-
- \li Download the export script, \e qmlexporter.py, from
- \l{https://code.qt.io/cgit/qt-labs/gimp-qmlexporter.git/}
- {code.qt.io}.
+ \li Clone the repository that contains the export script,
+ \e qmlexporter.py, from
+ \l{https://codereview.qt-project.org/#/admin/projects/qt-labs/gimp-qmlexporter}
+ {Qt Code Review}.
\note Read the INSTALL.txt in the repository for latest information
about the script.
@@ -186,6 +190,13 @@
On Linux, run the following command: \c {chmod u+rx}
+ \li To generate QML files that you can edit in \QMLD, edit the import
+ statement in \e qmlexporter.py. For example:
+
+ \code
+ f.write('import QtQuick 2.5\n')
+ \endcode
+
\li Restart GIMP to have the export command added to the \uicontrol File menu.
\li Choose \uicontrol {File > Export to QML} to export the design to a QML