|Import Statement:||import QtWebEngine|
- accepted : bool
- defaultText : string
- message : string
- securityOrigin : url
- title : string
- type : enumeration
The accepted property of the request indicates whether the request is handled by the user code or the default dialog should be displayed. If you set the accepted property to
The following code uses a custom dialog to handle the request:
accepted : bool
If the property is
The default is
[read-only] defaultText : string
The default prompt text, if the requested dialog is a prompt.
[read-only] message : string
The message to be shown to the user.
[read-only] securityOrigin : url
The URL of the security origin.
[read-only] title : string
A default title for the dialog.
[read-only] type : enumeration
Returns the type of the requested dialog box. For more information, see HTML5's Simple Dialogs.
|The users should be asked if they want to leave the page.|
This function notifies the engine that the user accepted the dialog.
void dialogAccept(string text)
This function notifies the engine that the user accepted the dialog, providing the text in case of a prompt message box.
This function notifies the engine that the user rejected the dialog.
© 2023 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.