Sur cette page

XrErrorDialog QML Type

Dialogue d'erreur personnalisé pour les applications PCVR. Plus d'informations...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.8
Inherits:

Item

Méthodes

  • void run(string title, string message)

Description détaillée

Vous pouvez utiliser ce type lors de la diffusion de contenu d'un ordinateur de bureau vers un casque XR. Il affiche une boîte de dialogue sur l'écran du bureau, généralement pour informer les utilisateurs des erreurs survenues lors de l'initialisation du casque. En interne, il instancie dynamiquement une fenêtre avec une boîte de dialogue.

XrView {
    id: xrView

    XrErrorDialog {
        id: errorDialog
    }
    onInitializeFailed: (errorString) => errorDialog.run("XRView", errorString)
}

Documentation de la méthode

void run(string title, string message)

Affiche un dialogue d'erreur avec le titre title et le contenu du message message.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.