Table Of Contents

Previous topic

QWebSettings

Next topic

QWebPluginFactory

QWebHitTestResult

Inheritance diagram of QWebHitTestResult

Synopsis

Functions

Detailed Description

The PySide.QtWebKit.QWebHitTestResult class provides information about the web page content after a hit test.

PySide.QtWebKit.QWebHitTestResult is returned by QWebFrame.hitTestContent() to provide information about the content of the web page at the specified position.

class PySide.QtWebKit.QWebHitTestResult
class PySide.QtWebKit.QWebHitTestResult(other)
Parameters:otherPySide.QtWebKit.QWebHitTestResult

Constructs a null hit test result.

Constructs a hit test result from other .

PySide.QtWebKit.QWebHitTestResult.alternateText()
Return type:unicode

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

PySide.QtWebKit.QWebHitTestResult.boundingRect()
Return type:PySide.QtCore.QRect

Returns the bounding rect of the element.

PySide.QtWebKit.QWebHitTestResult.element()
Return type:PySide.QtWebKit.QWebElement

Returns the underlying DOM element as PySide.QtWebKit.QWebElement .

PySide.QtWebKit.QWebHitTestResult.enclosingBlockElement()
Return type:PySide.QtWebKit.QWebElement

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.

PySide.QtWebKit.QWebHitTestResult.frame()
Return type:PySide.QtWebKit.QWebFrame

Returns the frame the hit test was executed in.

PySide.QtWebKit.QWebHitTestResult.imageUrl()
Return type:PySide.QtCore.QUrl

Returns the url of the image.

PySide.QtWebKit.QWebHitTestResult.isContentEditable()
Return type:PySide.QtCore.bool

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

PySide.QtWebKit.QWebHitTestResult.isContentSelected()
Return type:PySide.QtCore.bool

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

PySide.QtWebKit.QWebHitTestResult.isNull()
Return type:PySide.QtCore.bool

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

PySide.QtWebKit.QWebHitTestResult.linkElement()
Return type:PySide.QtWebKit.QWebElement

Returns the element that represents the link.

PySide.QtWebKit.QWebHitTestResult.linkTargetFrame()
Return type:PySide.QtWebKit.QWebFrame

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

PySide.QtWebKit.QWebHitTestResult.linkText()
Return type:unicode

Returns the text of the link.

PySide.QtWebKit.QWebHitTestResult.linkTitle()
Return type:PySide.QtCore.QUrl

Returns the title of the link.

PySide.QtWebKit.QWebHitTestResult.linkUrl()
Return type:PySide.QtCore.QUrl

Returns the url to which the link points to.

PySide.QtWebKit.QWebHitTestResult.pixmap()
Return type:PySide.QtGui.QPixmap

Returns a PySide.QtGui.QPixmap containing the image. A null pixmap is returned if the element being tested is not an image.

PySide.QtWebKit.QWebHitTestResult.pos()
Return type:PySide.QtCore.QPoint

Returns the position where the hit test occured.

PySide.QtWebKit.QWebHitTestResult.title()
Return type:unicode

Returns the title of the nearest enclosing HTML element.