XrErrorDialog QML Type

Custom error dialog for PCVR applications. 更多...

import 语句: import QtQuick3D.Xr
Since: Qt 6.8
继承:

Item

状态: 技术预览

方法

  • run (string title , string message )

详细描述

You can use this type when streaming content from a desktop computer to an XR headset. It displays a dialog box on the desktop screen, typically to inform users about errors in initializing the headset. Internally, it dynamically instantiates a Window with a message dialog.

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

方法文档编制

run ( string title , string message )

Displays an error dialog with the title title and message contents message .