QWebHitTestResult

Inheritance diagram of QWebHitTestResult

Synopsis

Functions

def alternateText ()
def boundingRect ()
def element ()
def enclosingBlockElement ()
def frame ()
def imageUrl ()
def isContentEditable ()
def isContentSelected ()
def isNull ()
def linkElement ()
def linkTargetFrame ()
def linkText ()
def linkTitle ()
def linkUrl ()
def operator= (other)
def pixmap ()
def pos ()
def title ()

Detailed Description

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

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)
Parameter:other – QWebHitTestResult

Constructs a null hit test result.

Constructs a hit test result from other .

QWebHitTestResult.alternateText()
Return type:QString

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

QWebHitTestResult.boundingRect()
Return type:QRect

Returns the bounding rect of the element.

QWebHitTestResult.element()
Return type:QWebElement

Returns the underlying DOM element as QWebElement .

QWebHitTestResult.enclosingBlockElement()
Return type: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.

QWebHitTestResult.frame()
Return type:QWebFrame

Returns the frame the hit test was executed in.

QWebHitTestResult.imageUrl()
Return type:QUrl

Returns the url of the image.

QWebHitTestResult.isContentEditable()
Return type:bool

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

QWebHitTestResult.isContentSelected()
Return type:bool

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

QWebHitTestResult.isNull()
Return type:bool

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

QWebHitTestResult.linkElement()
Return type:QWebElement

Returns the element that represents the link.

QWebHitTestResult.linkTargetFrame()
Return type:QWebFrame

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

QWebHitTestResult.linkText()
Return type:QString

Returns the text of the link.

QWebHitTestResult.linkTitle()
Return type:QUrl

Returns the title of the link.

QWebHitTestResult.linkUrl()
Return type:QUrl

Returns the url to which the link points to.

QWebHitTestResult.operator=(other)
Parameter:other – QWebHitTestResult
Return type:QWebHitTestResult

Assigns the other hit test result to this.

QWebHitTestResult.pixmap()
Return type:QPixmap

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

QWebHitTestResult.pos()
Return type:QPoint

Returns the position where the hit test occured.

QWebHitTestResult.title()
Return type:QString

Returns the title of the nearest enclosing HTML element.