QWebHitTestResult Class ReferenceThe QWebHitTestResult class provides information about the web page content after a hit test. More... #include <QWebHitTestResult> This class was introduced in Qt 4.4. Public Functions
Detailed DescriptionThe 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. Member Function DocumentationQWebHitTestResult::QWebHitTestResult ()Constructs a null hit test result. QWebHitTestResult::QWebHitTestResult ( const QWebHitTestResult & other )Constructs a hit test result from other. QWebHitTestResult::~QWebHitTestResult ()Destructor. QString QWebHitTestResult::alternateText () constReturns the alternate text of the element. This corresponds to the HTML alt attribute. QRect QWebHitTestResult::boundingRect () constReturns the bounding rect of the element. This function was introduced in Qt 4.5. QWebElement QWebHitTestResult::element () constReturns the underlying DOM element as QWebElement. This function was introduced in Qt 4.6. QWebElement QWebHitTestResult::enclosingBlockElement () constReturns 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. QWebFrame * QWebHitTestResult::frame () constReturns the frame the hit test was executed in. QUrl QWebHitTestResult::imageUrl () constReturns the url of the image. bool QWebHitTestResult::isContentEditable () constReturns true if the content is editable by the user; otherwise returns false. bool QWebHitTestResult::isContentSelected () constReturns true if the content tested is part of the selection; otherwise returns false. bool QWebHitTestResult::isNull () constReturns true if the hit test result is null; otherwise returns false. QWebElement QWebHitTestResult::linkElement () constReturns the element that represents the link. This function was introduced in Qt 4.6. See also linkTargetFrame(). QWebFrame * QWebHitTestResult::linkTargetFrame () constReturns the frame that will load the link if it is activated. See also linkElement(). QString QWebHitTestResult::linkText () constReturns the text of the link. QUrl QWebHitTestResult::linkTitle () constReturns the title of the link. QUrl QWebHitTestResult::linkUrl () constReturns the url to which the link points to. QPixmap QWebHitTestResult::pixmap () constReturns a QPixmap containing the image. A null pixmap is returned if the element being tested is not an image. QPoint QWebHitTestResult::pos () constReturns the position where the hit test occured. QString QWebHitTestResult::title () constReturns the title of the nearest enclosing HTML element. QWebHitTestResult & QWebHitTestResult::operator= ( const QWebHitTestResult & other )Assigns the other hit test result to this. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |