WebEngineAction QML Type
|Import Statement:||import QtWebEngine 1.10|
- void trigger()
The following code uses the WebEngineView::action() method to check if the the copy action is enabled:
var copyAction = webEngineView.action(WebEngineView.Copy); if (copyAction.enabled) console.log("Copy is enabled."); else console.log("Copy is disabled.");
enabled : bool
This property holds whether the action is enabled.
iconName : string
This property holds the name of the icon for the action. This name can be used to pick the icon from a theme.
text : int
This property holds a textual description of the action.
© 2022 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.