QWebHitTestResult Class Reference

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

#include <qwebframe.h>

List of all members.

Public Member Functions

 QWebHitTestResult ()
 QWebHitTestResult (const QWebHitTestResult &other)
QWebHitTestResultoperator= (const QWebHitTestResult &other)
 ~QWebHitTestResult ()
bool isNull () const
QPoint pos () const
QRect boundingRect () const
QWebElement enclosingBlockElement () const
QString title () const
QString linkText () const
QUrl linkUrl () const
QUrl linkTitle () const
QWebFramelinkTargetFrame () const
QWebElement linkElement () const
QString alternateText () const
QUrl imageUrl () const
QPixmap pixmap () const
bool isContentEditable () const
bool isContentSelected () const
QWebElement element () const
QWebFrameframe () const

Private Member Functions

 QWebHitTestResult (QWebHitTestResultPrivate *priv)

Private Attributes

QWebHitTestResultPrivate * d

Friends

class QWebFrame
class QWebPagePrivate
class QWebPage

Detailed Description

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

Since:
4.4 QtWebKit

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

Definition at line 62 of file qwebframe.h.


Constructor & Destructor Documentation

QWebHitTestResult::QWebHitTestResult (  ) 

Constructs a null hit test result.

Definition at line 1631 of file qwebframe.cpp.

QWebHitTestResult::QWebHitTestResult ( const QWebHitTestResult other  ) 

Constructs a hit test result from other.

Definition at line 1639 of file qwebframe.cpp.

References d.

QWebHitTestResult::~QWebHitTestResult (  ) 

Destructor.

Definition at line 1667 of file qwebframe.cpp.

References d.

QWebHitTestResult::QWebHitTestResult ( QWebHitTestResultPrivate *  priv  )  [private]

Definition at line 1583 of file qwebframe.cpp.


Member Function Documentation

QString QWebHitTestResult::alternateText (  )  const

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

Definition at line 1784 of file qwebframe.cpp.

References d.

QRect QWebHitTestResult::boundingRect (  )  const
Since:
4.5 Returns the bounding rect of the element.

Definition at line 1694 of file qwebframe.cpp.

References d.

QWebElement QWebHitTestResult::element (  )  const
Since:
4.6 Returns the underlying DOM element as QWebElement.

Definition at line 1836 of file qwebframe.cpp.

References d.

QWebElement QWebHitTestResult::enclosingBlockElement (  )  const
Since:
4.6 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.

Definition at line 1709 of file qwebframe.cpp.

References d.

QWebFrame * QWebHitTestResult::frame (  )  const

Returns the frame the hit test was executed in.

Definition at line 1847 of file qwebframe.cpp.

References d.

QUrl QWebHitTestResult::imageUrl (  )  const

Returns the url of the image.

Definition at line 1794 of file qwebframe.cpp.

References d.

bool QWebHitTestResult::isContentEditable (  )  const

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

Definition at line 1815 of file qwebframe.cpp.

References d.

bool QWebHitTestResult::isContentSelected (  )  const

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

Definition at line 1825 of file qwebframe.cpp.

References d.

bool QWebHitTestResult::isNull (  )  const

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

Definition at line 1675 of file qwebframe.cpp.

References d.

QWebElement QWebHitTestResult::linkElement (  )  const
Since:
4.6 Returns the element that represents the link.
See also:
linkTargetFrame()

Definition at line 1762 of file qwebframe.cpp.

References d.

QWebFrame * QWebHitTestResult::linkTargetFrame (  )  const

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

See also:
linkElement()

Definition at line 1774 of file qwebframe.cpp.

References d.

QString QWebHitTestResult::linkText (  )  const

Returns the text of the link.

Definition at line 1729 of file qwebframe.cpp.

References d.

QUrl QWebHitTestResult::linkTitle (  )  const

Returns the title of the link.

Definition at line 1749 of file qwebframe.cpp.

References d.

QUrl QWebHitTestResult::linkUrl (  )  const

Returns the url to which the link points to.

Definition at line 1739 of file qwebframe.cpp.

References d.

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

Assigns the other hit test result to this.

Definition at line 1649 of file qwebframe.cpp.

References d.

QPixmap QWebHitTestResult::pixmap (  )  const

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

Definition at line 1805 of file qwebframe.cpp.

References d.

QPoint QWebHitTestResult::pos (  )  const

Returns the position where the hit test occured.

Definition at line 1683 of file qwebframe.cpp.

References d.

QString QWebHitTestResult::title (  )  const

Returns the title of the nearest enclosing HTML element.

Definition at line 1719 of file qwebframe.cpp.

References d.


Friends And Related Function Documentation

friend class QWebFrame [friend]

Definition at line 98 of file qwebframe.h.

friend class QWebPage [friend]

Definition at line 100 of file qwebframe.h.

friend class QWebPagePrivate [friend]

Definition at line 99 of file qwebframe.h.


Member Data Documentation

QWebHitTestResultPrivate* QWebHitTestResult::d [private]

Definition at line 96 of file qwebframe.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208