WebEngineViewer::WebHitTestResult Class

The WebHitTestResult class. More...

Header: #include <WebEngineViewer/WebHitTestResult>
CMake: find_package(KPim6WebEngineViewer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer)

Public Functions

WebHitTestResult()
WebHitTestResult(const QPoint &pos, const QUrl &pageUrl, const QVariant &result)
WebHitTestResult(const WebEngineViewer::WebHitTestResult &other)
~WebHitTestResult()
QString alternateText() const
QRect boundingRect() const
QUrl imageUrl() const
bool isContentEditable() const
bool isContentSelected() const
bool isNull() const
QString linkTitle() const
QUrl linkUrl() const
bool mediaMuted() const
bool mediaPaused() const
QUrl mediaUrl() const
QUrl pageUrl() const
QPoint pos() const
QString tagName() const
WebEngineViewer::WebHitTestResult &operator=(const WebEngineViewer::WebHitTestResult &webHit)

Detailed Description

Member Function Documentation

WebHitTestResult::WebHitTestResult()

Constructs a default WebHitTestResult object.

WebHitTestResult::WebHitTestResult(const QPoint &pos, const QUrl &pageUrl, const QVariant &result)

Constructs a WebHitTestResult from the given position, page URL, and result variant.

WebHitTestResult::WebHitTestResult(const WebEngineViewer::WebHitTestResult &other)

Constructs a WebHitTestResult by copying the other object.

[noexcept] WebHitTestResult::~WebHitTestResult()

Destroys the WebHitTestResult object.

QString WebHitTestResult::alternateText() const

Returns the alternate text.

QRect WebHitTestResult::boundingRect() const

Returns the bounding rectangle.

QUrl WebHitTestResult::imageUrl() const

Returns the image URL.

bool WebHitTestResult::isContentEditable() const

Returns whether the content is editable.

bool WebHitTestResult::isContentSelected() const

Returns whether content is selected.

bool WebHitTestResult::isNull() const

Returns whether this is a null result.

QString WebHitTestResult::linkTitle() const

Returns the link title.

QUrl WebHitTestResult::linkUrl() const

Returns the link URL.

bool WebHitTestResult::mediaMuted() const

Returns whether the media is muted.

bool WebHitTestResult::mediaPaused() const

Returns whether the media is paused.

QUrl WebHitTestResult::mediaUrl() const

Returns the media URL.

QUrl WebHitTestResult::pageUrl() const

Returns the page URL.

QPoint WebHitTestResult::pos() const

Returns the position.

QString WebHitTestResult::tagName() const

Returns the tag name.

WebEngineViewer::WebHitTestResult &WebHitTestResult::operator=(const WebEngineViewer::WebHitTestResult &webHit)

Assigns the other result to this object.