// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \previouspage creator-live-preview.html
    \page creator-live-preview-desktop.html
    \nextpage creator-live-preview-devices.html

    \title Previewing on Desktop

    To preview the currently active QML file on the desktop:

    \list
        \if defined(qtcreator)
        \li Select \inlineimage icons/live-preview.png (\uicontrol {Live Preview})
            on the \l{Edit Mode}{editor} toolbar.
            \image qtcreator-live-preview.webp {Application running on top of the editor view}
        \li Select \uicontrol Build > \uicontrol {QML Preview}.
    \endlist
        \else
        \li Select the \uicontrol {Live Preview} button on the top toolbar.
        \li Press \key {Alt+P}.
        \image studio-live-preview.webp
    \endlist

    To preview any QML file in the project:

    \list
        \li Select the \uicontrol {Live Preview} button on the top toolbar.
        \li Right-click the filename in the \l Projects view, and select
            \uicontrol {Preview File}.
    \endlist

    To preview the whole UI, select \uicontrol {Live Preview}
    when viewing the main QML file of the project.

    \section1 Overriding the Preview Tool

    By default, the QML runtime is used for previewing.

    To use some other tool:

    \list 1
        \li Select \inlineimage icons/settings.png to go to
            \uicontrol {Run Settings}.
            \image studio-run-settings.webp {Run Settings}
        \li In \uicontrol {Override device QML viewer}, select the folder where
            the preview tool executable is located.
    \endlist
    \endif
*/
