Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QWebHitTestResult Class

TheQWebHitTestResult class provides information about the web page content after a hit test.More...

Header:#include <QWebHitTestResult>
Since: Qt 4.4

Public Functions

QWebHitTestResult()
QWebHitTestResult(const QWebHitTestResult & other)
~QWebHitTestResult()
QStringalternateText() const
QRectboundingRect() const
QWebElementelement() const
QWebElementenclosingBlockElement() const
QWebFrame *frame() const
QUrlimageUrl() const
boolisContentEditable() const
boolisContentSelected() const
boolisNull() const
QWebElementlinkElement() const
QWebFrame *linkTargetFrame() const
QStringlinkText() const
QUrllinkTitle() const
QUrllinkUrl() const
QPixmappixmap() const
QPointpos() const
QStringtitle() const
QWebHitTestResult &operator=(const QWebHitTestResult & other)

Detailed Description

TheQWebHitTestResult class provides information about the web page content after a hit test.

QWebHitTestResult is returned byQWebFrame::hitTestContent() to provide information about the content of the web page at the specified position.

Member Function Documentation

QWebHitTestResult::QWebHitTestResult()

Constructs a null hit test result.

QWebHitTestResult::QWebHitTestResult(constQWebHitTestResult & other)

Constructs a hit test result fromother.

QWebHitTestResult::~QWebHitTestResult()

Destructor.

QString QWebHitTestResult::alternateText() const

Returns the alternate text of the element. This corresponds to the HTML alt attribute.

QRect QWebHitTestResult::boundingRect() const

Returns the bounding rect of the element.

This function was introduced in Qt 4.5.

QWebElement QWebHitTestResult::element() const

Returns the underlying DOM element asQWebElement.

This function was introduced in Qt 4.6.

QWebElement QWebHitTestResult::enclosingBlockElement() const

Returns the block element that encloses the element hit.

A block element is an element that is rendered using the CSS "block" style. This includes for example text paragraphs.

This function was introduced in Qt 4.6.

QWebFrame * QWebHitTestResult::frame() const

Returns the frame the hit test was executed in.

QUrl QWebHitTestResult::imageUrl() const

Returns the url of the image.

bool QWebHitTestResult::isContentEditable() const

Returns true if the content is editable by the user; otherwise returns false.

bool QWebHitTestResult::isContentSelected() const

Returns true if the content tested is part of the selection; otherwise returns false.

bool QWebHitTestResult::isNull() const

Returns true if the hit test result is null; otherwise returns false.

QWebElement QWebHitTestResult::linkElement() const

Returns the element that represents the link.

This function was introduced in Qt 4.6.

See alsolinkTargetFrame().

QWebFrame * QWebHitTestResult::linkTargetFrame() const

Returns the frame that will load the link if it is activated.

See alsolinkElement().

QString QWebHitTestResult::linkText() const

Returns the text of the link.

QUrl QWebHitTestResult::linkTitle() const

Returns the title of the link.

QUrl QWebHitTestResult::linkUrl() const

Returns the url to which the link points to.

QPixmap QWebHitTestResult::pixmap() const

Returns aQPixmap containing the image. A null pixmap is returned if the element being tested is not an image.

QPoint QWebHitTestResult::pos() const

Returns the position where the hit test occured.

QString QWebHitTestResult::title() const

Returns the title of the nearest enclosing HTML element.

QWebHitTestResult & QWebHitTestResult::operator=(constQWebHitTestResult & other)

Assigns theother hit test result to this.

© 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 theGNU 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.


[8]ページ先頭

©2009-2025 Movatter.jp