XrErrorDialog QML Type

Benutzerdefinierter Fehlerdialog für PCVR-Anwendungen. Mehr...

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

Item

Status: Technical Preview

Methoden

  • run(string title, string message)

Detaillierte Beschreibung

Sie können diesen Typ verwenden, wenn Sie Inhalte von einem Desktop-Computer an ein XR-Headset streamen. Er zeigt ein Dialogfeld auf dem Desktop-Bildschirm an, in der Regel um Benutzer über Fehler bei der Initialisierung des Headsets zu informieren. Intern instanziiert er dynamisch ein Fenster mit einem Meldungsdialog.

XrView {
    id: xrView

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

Methode Dokumentation

run(string title, string message)

Zeigt einen Fehlerdialog mit dem Titel title und dem Inhalt der Meldung message an.


© 2025 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.