WebEngineContextMenuData QML Type
Provides context data for populating or extending a context menu with actions. More...
|Import Statement:||import QtWebEngine 1.3|
- isContentEditable : bool
- isValid : bool
- linkText : string
- linkUrl : url
- mediaType : enumeration
- mediaUrl : url
- position : point
- selectedText : string
WebEngineContextMenuData is returned by WebEngineView::contextMenuData() after a context menu event, and contains information about where the context menu event took place. This is also in the context in which any context specific WebEngineView::WebAction will be performed.
true if the content is editable by the user; otherwise returns
linkUrl : url
Returns the URL of a link if the context is a link.
Returns the type of the media element or
MediaTypeNone if the context is not a media element.
|The context is not a media element.|
|The context is an image element|
|The context is a video element|
|The context is an audio element|
|The context is a canvas element|
|The context is a file|
|The context is a plugin|
mediaUrl : url
If the context is a media element, returns the URL of that media.
Returns the position of the context, usually the mouse position where the context menu event was triggered.
© 2016 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.