The output is generated using the qDebug, qWarning, qCritical methods in C++
(see also http://doc.qt.nokia.com/latest/debug.html#warning-and-debugging-messages).
-\hint Setting the environment variable QML_CONSOLE_EXTENDED also prints the source
+Setting the environment variable QML_CONSOLE_EXTENDED also prints the source
code location of the call.
\section2 Assert
Applications that use QML need to invoke the QML runtime in order to
execute QML documents. This can be done by creating a QQuickView
or a QQmlEngine, as described below. In addition, the Declarative UI
-package includes the \QQV tool, which loads \c .qml files. This tool is
+package includes the qmlscene tool, which loads \c .qml files. This tool is
useful for developing and testing QML code without the need to write
a C++ application to load the QML runtime.
\section1 Developing and Prototyping with QML Viewer
-The Declarative UI package includes a QML runtime tool, the \QQV, which loads
+The Declarative UI package includes a QML runtime tool, qmlscene, which loads
and displays QML documents. This is useful during the application development
phase for prototyping QML-based applications without writing your own C++
applications to invoke the QML runtime.
-See the \l{QML Viewer} documentation for more details.
-
*/
Note that the QtQuick 1 version is called QDeclarativeEngine.
- \sa QQmlComponent QQmlContext
+ \sa QQmlComponent, QQmlContext
*/
/*!
paths specified in the \c QML_IMPORT_PATH environment variable,
and the builtin \c ImportsPath from QLibraryInfo.
- \sa addImportPath() setImportPathList()
+ \sa addImportPath(), setImportPathList()
*/
QStringList QQmlEngine::importPathList() const
{
paths specified in the \c QML_IMPORT_PATH environment variable,
and the builtin \c ImportsPath from QLibraryInfo.
- \sa importPathList() addImportPath()
+ \sa importPathList(), addImportPath()
*/
void QQmlEngine::setImportPathList(const QStringList &paths)
{
By default, the list contains only \c ., i.e. the engine searches
in the directory of the \c qmldir file itself.
- \sa addPluginPath() setPluginPathList()
+ \sa addPluginPath(), setPluginPathList()
*/
QStringList QQmlEngine::pluginPathList() const
{
By default, the list contains only \c ., i.e. the engine searches
in the directory of the \c qmldir file itself.
- \sa pluginPathList() addPluginPath()
+ \sa pluginPathList(), addPluginPath()
*/
void QQmlEngine::setPluginPathList(const QStringList &paths)
{
/*!
Create a QQmlExpression object that is a child of \a parent.
- The \script provides the expression to be evaluated, the context to evaluate it in,
+ The \a script provides the expression to be evaluated, the context to evaluate it in,
and the scope object to evaluate it with.
This constructor is functionally equivalent to the following, but in most cases
This product includes software developed by the University of
California, Berkeley and its contributors.
- \sa {QtQuick2::Date}{Date} {QtQuick2::Number}{Number}
+ \sa {QtQuick2::Date}{Date}, {QtQuick2::Number}{Number}
*/
QQmlLocale::QQmlLocale()
\snippet doc/src/snippets/qml/listmodel.qml 0
- \clearfloat
Roles (properties) in each element must begin with a lower-case letter and
should be common to all elements in a model. The ListElement documentation
provides more guidelines for how elements should be defined.
\snippet doc/src/snippets/qml/listmodel-nested.qml delegate
- \clearfloat
\section1 Modifying List Models
The content of a ListModel may be created and modified using the clear(),
Deletes all content from the model.
- \sa append() remove()
+ \sa append(), remove()
*/
void QQuickListModel::clear()
{
The \a index must be to an existing item in the list, or one past
the end of the list (equivalent to append).
- \sa set() append()
+ \sa set(), append()
*/
void QQuickListModel::insert(QQmlV8Function *args)
fruitModel.append({"cost": 5.95, "name":"Pizza"})
\endcode
- \sa set() remove()
+ \sa set(), remove()
*/
void QQuickListModel::append(QQmlV8Function *args)
{