QWebHitTestResult Class Reference |
QWebHitTestResult () | |
QWebHitTestResult ( const QWebHitTestResult & other ) | |
~QWebHitTestResult () | |
QString | alternateText () const |
QRect | boundingRect () const |
QWebElement | element () const |
QWebElement | enclosingBlockElement () const |
QWebFrame * | frame () const |
QUrl | imageUrl () const |
bool | isContentEditable () const |
bool | isContentSelected () const |
bool | isNull () const |
QWebElement | linkElement () const |
QWebFrame * | linkTargetFrame () const |
QString | linkText () const |
QUrl | linkTitle () const |
QUrl | linkUrl () const |
QPixmap | pixmap () const |
QPoint | pos () const |
QString | title () const |
QWebHitTestResult & | operator= ( const QWebHitTestResult & other ) |
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.
Constructs a null hit test result.
Constructs a hit test result from other.
Destructor.
Returns the alternate text of the element. This corresponds to the HTML alt attribute.
Returns the bounding rect of the element.
This function was introduced in Qt 4.5.
Returns the underlying DOM element as QWebElement.
This function was introduced in Qt 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.
This function was introduced in Qt 4.6.
Returns the frame the hit test was executed in.
Returns the url of the image.
Returns true if the content is editable by the user; otherwise returns false.
Returns true if the content tested is part of the selection; otherwise returns false.
Returns true if the hit test result is null; otherwise returns false.
Returns the element that represents the link.
This function was introduced in Qt 4.6.
See also linkTargetFrame().
Returns the frame that will load the link if it is activated.
See also linkElement().
Returns the text of the link.
Returns the title of the link.
Returns the url to which the link points to.
Returns a QPixmap containing the image. A null pixmap is returned if the element being tested is not an image.
Returns the position where the hit test occured.
Returns the title of the nearest enclosing HTML element.
Assigns the other hit test result to this.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com