// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\page qtqml-javascript-qmlglobalobject.html
\title QML Global Object
\brief Description of the Qml Global Object


The QML JavaScript host environment implements the following host objects and functions.
They are built-in, so you can use them from any JavaScript code loaded in QML, without
additional imports:

\list
\li The \l{QmlGlobalQtObject}{Qt object}: A QML object that offers helper methods
    and properties specific to the QML environment.
\li \l {Qt::}{qsTr()}, \l {Qt::}{qsTranslate()}, \l {Qt::}{qsTrId()}, \l {Qt::}{QT_TR_NOOP()()},
    \l {Qt::}{QT_TRANSLATE_NOOP()}, \l {Qt::}{QT_TRID_NOOP()} functions:
    QML functions that let you translate \l{Mark Strings for Translation}
    {strings} and \l{Mark Translatable Data Text Strings}{string literals} in the
    QML environment.
\li gc() function: A QML function that manually triggers garbage collection.
\li print() function: A QML function that prints output to the console.
\li The \l{Console API}{console object}: Implements a subset of the
    \l{http://getfirebug.com/wiki/index.php/Console_API}{FireBug Console API}.
\li \l{XMLHttpRequest}, DOMException: Implements a subset of the
    \l{http://www.w3.org/TR/XMLHttpRequest/}{W3C XMLHttpRequest specification}.
\endlist

\note You cannot use the \l {QJSEngine::}{globalObject()} function to change
the global object of a \l QQmlEngine. For more information, see
\l {JavaScript Environment Restrictions}.

*/
