WebEngineAction QML 类型

An action that represents a WebEngineView::WebAction . 更多...

import 语句: import QtWebEngine
Since: QtWebEngine 1.8

特性

方法

详细描述

A WebEngineAction is returned by the WebEngineView::action() method. It provides information about the action, such as whether it is enabled .

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.


方法文档编制

void trigger ()

Triggers the action.