• PySide 模块
  • PySide.QtWebKit
  • 内容表

    上一话题

    QWebHistoryItem

    下一话题

    QWebElementCollection

    QWebHitTestResult

    详细描述

    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 )
    参数: other PySide.QtWebKit.QWebHitTestResult

    Constructs a null hit test result.

    Constructs a hit test result from other .

    PySide.QtWebKit.QWebHitTestResult. alternateText ( )
    返回类型: unicode

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

    PySide.QtWebKit.QWebHitTestResult. boundingRect ( )
    返回类型: PySide.QtCore.QRect

    Returns the bounding rect of the element.

    PySide.QtWebKit.QWebHitTestResult. element ( )
    返回类型: PySide.QtWebKit.QWebElement

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

    PySide.QtWebKit.QWebHitTestResult. enclosingBlockElement ( )
    返回类型: 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 ( )
    返回类型: PySide.QtWebKit.QWebFrame

    Returns the frame the hit test was executed in.

    PySide.QtWebKit.QWebHitTestResult. imageUrl ( )
    返回类型: PySide.QtCore.QUrl

    Returns the url of the image.

    PySide.QtWebKit.QWebHitTestResult. isContentEditable ( )
    返回类型: PySide.QtCore.bool

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

    PySide.QtWebKit.QWebHitTestResult. isContentSelected ( )
    返回类型: PySide.QtCore.bool

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

    PySide.QtWebKit.QWebHitTestResult. isNull ( )
    返回类型: PySide.QtCore.bool

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

    PySide.QtWebKit.QWebHitTestResult. linkElement ( )
    返回类型: PySide.QtWebKit.QWebElement

    Returns the element that represents the link.

    PySide.QtWebKit.QWebHitTestResult. linkTargetFrame ( )
    返回类型: PySide.QtWebKit.QWebFrame

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

    PySide.QtWebKit.QWebHitTestResult. linkText ( )
    返回类型: unicode

    Returns the text of the link.

    PySide.QtWebKit.QWebHitTestResult. linkTitle ( )
    返回类型: PySide.QtCore.QUrl

    Returns the title of the link.

    PySide.QtWebKit.QWebHitTestResult. linkUrl ( )
    返回类型: PySide.QtCore.QUrl

    Returns the url to which the link points to.

    PySide.QtWebKit.QWebHitTestResult. pixmap ( )
    返回类型: PySide.QtGui.QPixmap

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

    PySide.QtWebKit.QWebHitTestResult. pos ( )
    返回类型: PySide.QtCore.QPoint

    Returns the position where the hit test occured.

    PySide.QtWebKit.QWebHitTestResult. title ( )
    返回类型: unicode

    Returns the title of the nearest enclosing HTML element.