TooltipRequest QML Type

A request for showing a tooltip to the user. 更多...

导入语句: 导入 QtWebEngine 1.10
Since: QtWebEngine 1.10

特性

详细描述

特性文档编制

accepted : bool

Indicates whether the tooltip request has been accepted by the signal handler.

If the property is false after any signal handlers for WebEngineView::tooltipRequested have been executed, a default tooltip will be shown. To prevent this, set request.accepted to true .

默认为 false .


[read-only] text : bool

The text of the tooltip. It contains an empty string when the tooltip should be hidden.


[read-only] type : enumeration

The type of the tooltip request.

常量 描述
TooltipRequest.Show The tooltip should be shown.
TooltipRequest.Hide The tooltip should be hidden.

[read-only] x : int

The x coordinate of the top-left corner of the requested tooltip.


[read-only] y : int

The y coordinate of the top-left corner of the requested tooltip.