56 Q_PROPERTY(QPoint
pos READ
pos CONSTANT)
67 Q_INVOKABLE
bool isImage()
const;
82 Q_INVOKABLE
bool isNull()
const;
87 Q_INVOKABLE
bool isLink()
const;
92 Q_INVOKABLE
bool isMedia()
const;
The class exposing result of WebHitTest to QML.
QString imageUrl
Gets the url of image on which the context menu is requested.
Q_INVOKABLE bool mediaPaused() const
Checks if the context menu requested on media element is paused.
Q_INVOKABLE bool isLink() const
Checks if the context menu is requested on a link.
QmlWebHitTestResult(const WebHitTestResult &webHitTestResult, QObject *parent=nullptr)
QString linkUrl
Gets the link url on which the context menu is requested.
QString baseUrl
Gets the base url on which the context menu is requested.
QString linkTitle
Gets the link title on which the context menu is requested.
Q_INVOKABLE bool isNull() const
Checks if the context menu is requested on null element.
Q_INVOKABLE bool isMedia() const
Checks if the context menu is requested on a media element.
QPointF viewportPos
Gets the viewport position at which the context menu is requested.
QPoint pos
Gets the position at which the context menu is requested.
QString tagName
Gets the tagName of the element on which the context menu is requested.
Q_INVOKABLE bool isImage() const
Checks if the context menu is requested on image.
Q_INVOKABLE bool mediaMuted() const
Checks if the context menu requested on media element is muted.
QString mediaUrl
Gets the url of media on which the context menu is requested.
Q_INVOKABLE bool isContentEditable() const
Checks if the context menu is requested on editable content.
Q_INVOKABLE bool isContentSelected() const
Checks if the context menu is requested on the selected content.