forked from qt-creator/qt-creator
Doc: Qt Quick Designer only supports Qt Quick 1
Change-Id: Ic0e746a053522d494d03e9add6cc4813072d0ec3 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -42,6 +42,9 @@
|
|||||||
You can either create Qt Quick projects from scratch or import
|
You can either create Qt Quick projects from scratch or import
|
||||||
existing projects to \QC. You can use the code editor (Edit mode)
|
existing projects to \QC. You can use the code editor (Edit mode)
|
||||||
or the visual editor (Design mode) to develop Qt Quick applications.
|
or the visual editor (Design mode) to develop Qt Quick applications.
|
||||||
|
However, the visual editor only supports Qt Quick 1, which is
|
||||||
|
offered in Qt 5 only for compatibility with Qt 4. We recommend that
|
||||||
|
you use Qt Quick 2 for new Qt 5 applications.
|
||||||
\o \l{Developing Widget Based Applications}
|
\o \l{Developing Widget Based Applications}
|
||||||
|
|
||||||
Widgets and forms created with \QD are integrated seamlessly with
|
Widgets and forms created with \QD are integrated seamlessly with
|
||||||
|
|||||||
@@ -38,9 +38,9 @@
|
|||||||
|
|
||||||
\list
|
\list
|
||||||
|
|
||||||
\o \l{Creating a Qt Quick Application}
|
\o \l{Creating a Qt Quick 1 Application}
|
||||||
|
|
||||||
Learn about the basic Qt Quick concepts and QML elements.
|
Learn how to use \QMLD to create a Qt Quick 1 application.
|
||||||
|
|
||||||
\o \l{Creating a Qt Widget Based Application}
|
\o \l{Creating a Qt Widget Based Application}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
You can use the code editor (\l{Working in Edit Mode}{Edit mode}) or the
|
You can use the code editor (\l{Working in Edit Mode}{Edit mode}) or the
|
||||||
visual editor (\l{Using Qt Quick Designer}{Design mode}) to develop Qt Quick
|
visual editor (\l{Using Qt Quick Designer}{Design mode}) to develop Qt Quick
|
||||||
applications.
|
applications.However, the visual editor only supports Qt Quick 1.
|
||||||
|
|
||||||
Typically, application development proceeds as follows:
|
Typically, application development proceeds as follows:
|
||||||
|
|
||||||
|
|||||||
@@ -28,12 +28,16 @@
|
|||||||
\page creator-qml-application.html
|
\page creator-qml-application.html
|
||||||
\nextpage creator-writing-program.html
|
\nextpage creator-writing-program.html
|
||||||
|
|
||||||
\title Creating a Qt Quick Application
|
\title Creating a Qt Quick 1 Application
|
||||||
|
|
||||||
\note To complete this tutorial, you must have Qt 4.7 or later installed.
|
\note \QMLD only supports Qt Quick 1, which is offered in Qt 5 only for
|
||||||
|
compatibility with Qt 4. We recommend that you use Qt Quick 2 for new
|
||||||
|
Qt 5 applications. You can use the code editor in the \gui Design mode to
|
||||||
|
develop Qt Quick 2 applications. For more information, see the Qt 5
|
||||||
|
documentation.
|
||||||
|
|
||||||
This tutorial uses built-in QML elements and illustrates basic concepts of
|
This tutorial uses built-in QML elements and illustrates basic concepts of
|
||||||
\l {http://qt-project.org/doc/qt-4.8/qtquick.html}{Qt Quick}.
|
\l {http://qt-project.org/doc/qt-4.8/qtquick.html}{Qt Quick 1}.
|
||||||
|
|
||||||
This tutorial describes how to use the \QC to implement the
|
This tutorial describes how to use the \QC to implement the
|
||||||
\l{http://qt-project.org/doc/qt-4.8/declarative-animation-states.html}
|
\l{http://qt-project.org/doc/qt-4.8/declarative-animation-states.html}
|
||||||
@@ -51,12 +55,13 @@
|
|||||||
\list 1
|
\list 1
|
||||||
|
|
||||||
\o Select \gui{File > New File or Project > Applications >
|
\o Select \gui{File > New File or Project > Applications >
|
||||||
Qt Quick Application (Built-in Elements) > Choose}.
|
Qt Quick 1 Application (Built-in Elements) > Choose}.
|
||||||
|
|
||||||
\o In the \gui{Name} field, type \bold {Transitions}.
|
\o In the \gui{Name} field, type \bold {Transitions}.
|
||||||
|
|
||||||
\o In the \gui {Create in} field, enter the path for the project files.
|
\o In the \gui {Create in} field, enter the path for the project files.
|
||||||
For example, \c {C:\Qt\examples}, and then click \gui{Next}.
|
For example, \c {C:\Qt\examples}, and then click \gui{Next} (on
|
||||||
|
Windows and Linux) or \gui Continue (on Mac OS).
|
||||||
|
|
||||||
\o Select \l{glossary-buildandrun-kit}{kits} for running and building your project,
|
\o Select \l{glossary-buildandrun-kit}{kits} for running and building your project,
|
||||||
and then click \gui{Next}.
|
and then click \gui{Next}.
|
||||||
@@ -67,10 +72,10 @@
|
|||||||
\o Select \gui Next in the following dialogs to use the default
|
\o Select \gui Next in the following dialogs to use the default
|
||||||
settings.
|
settings.
|
||||||
|
|
||||||
\o Review the project settings, and click \gui{Finish} to create the
|
\o Review the project settings, and click \gui{Finish} (on Windows and
|
||||||
project.
|
Linux) or \gui Done (on Mac OS) to create the project.
|
||||||
|
|
||||||
\o Press \key {Ctrl+R} to run the application.
|
\o Press \key {Ctrl+R} (or \key {Cmd+R})to run the application.
|
||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
You can edit .qml files in the \QMLD visual editor or in the code editor.
|
You can edit .qml files in the \QMLD visual editor or in the code editor.
|
||||||
|
|
||||||
|
\note \QMLD only supports Qt Quick 1.
|
||||||
|
|
||||||
In \gui Projects, double-click a .qml file to open it in the code editor.
|
In \gui Projects, double-click a .qml file to open it in the code editor.
|
||||||
Then select the \gui {Design} mode to edit the file in the visual editor.
|
Then select the \gui {Design} mode to edit the file in the visual editor.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user