Spec-Zone.ru › Qt

WebEngineAction QML Type

An action that represents a WebEngineView::WebAction. More...

Import Statement: import QtWebEngine
Since: QtWebEngine 1.8
  • List of all members, including inherited members

Properties

  • enabled : bool
  • iconName : string
  • text : int

Methods

  • void trigger()

Detailed Description

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.");

Property Documentation

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.

Method Documentation

void trigger()

Triggers the action.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qml-qtwebengine-webengineaction.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API