QWebElement Class Reference

QWebElement Class Reference

#include <qwebelement.h>

Class Description

Definition at line 58 of file qwebelement.h.

Public Types

enum  StyleResolveStrategy { InlineStyle, CascadedStyle, ComputedStyle }
 

Public Member Functions

 QWebElement ()
 
 QWebElement (const QWebElement &)
 
QWebElementoperator= (const QWebElement &)
 
 ~QWebElement ()
 
bool operator== (const QWebElement &o) const
 
bool operator!= (const QWebElement &o) const
 
bool isNull () const
 
QWebElementCollection findAll (const QString &selectorQuery) const
 
QWebElement findFirst (const QString &selectorQuery) const
 
void setPlainText (const QString &text)
 
QString toPlainText () const
 
void setOuterXml (const QString &markup)
 
QString toOuterXml () const
 
void setInnerXml (const QString &markup)
 
QString toInnerXml () const
 
void setAttribute (const QString &name, const QString &value)
 
void setAttributeNS (const QString &namespaceUri, const QString &name, const QString &value)
 
QString attribute (const QString &name, const QString &defaultValue=QString()) const
 
QString attributeNS (const QString &namespaceUri, const QString &name, const QString &defaultValue=QString()) const
 
bool hasAttribute (const QString &name) const
 
bool hasAttributeNS (const QString &namespaceUri, const QString &name) const
 
void removeAttribute (const QString &name)
 
void removeAttributeNS (const QString &namespaceUri, const QString &name)
 
bool hasAttributes () const
 
QStringList attributeNames (const QString &namespaceUri=QString()) const
 
QStringList classes () const
 
bool hasClass (const QString &name) const
 
void addClass (const QString &name)
 
void removeClass (const QString &name)
 
void toggleClass (const QString &name)
 
bool hasFocus () const
 
void setFocus ()
 
QRect geometry () const
 
QString tagName () const
 
QString prefix () const
 
QString localName () const
 
QString namespaceUri () const
 
QWebElement parent () const
 
QWebElement firstChild () const
 
QWebElement lastChild () const
 
QWebElement nextSibling () const
 
QWebElement previousSibling () const
 
QWebElement document () const
 
QWebFramewebFrame () const
 
void appendInside (const QString &markup)
 
void appendInside (const QWebElement &element)
 
void prependInside (const QString &markup)
 
void prependInside (const QWebElement &element)
 
void appendOutside (const QString &markup)
 
void appendOutside (const QWebElement &element)
 
void prependOutside (const QString &markup)
 
void prependOutside (const QWebElement &element)
 
void encloseContentsWith (const QWebElement &element)
 
void encloseContentsWith (const QString &markup)
 
void encloseWith (const QString &markup)
 
void encloseWith (const QWebElement &element)
 
void replace (const QString &markup)
 
void replace (const QWebElement &element)
 
QWebElement clone () const
 
QWebElementtakeFromDocument ()
 
void removeFromDocument ()
 
void removeAllChildren ()
 
QVariant evaluateJavaScript (const QString &scriptSource)
 
QString styleProperty (const QString &name, StyleResolveStrategy strategy) const
 
void setStyleProperty (const QString &name, const QString &value)
 
void render (QPainter *painter)
 
void render (QPainter *painter, const QRect &clipRect)
 

Friends

class DumpRenderTreeSupportQt
 
class QWebFrame
 
class QWebElementCollection
 
class QWebHitTestResult
 
class QWebHitTestResultPrivate
 
class QWebPage
 
class JSC::Bindings::QtWebElementRuntime
 

Member Enumeration Documentation

Enumerator
InlineStyle 
CascadedStyle 
ComputedStyle 

Definition at line 150 of file qwebelement.h.

Constructor & Destructor Documentation

QWebElement ( const QWebElement )

Member Function Documentation

QWebElement& operator= ( const QWebElement )
bool operator== ( const QWebElement o) const
bool operator!= ( const QWebElement o) const
bool isNull ( ) const
QWebElementCollection findAll ( const QString selectorQuery) const
QWebElement findFirst ( const QString selectorQuery) const
void setPlainText ( const QString text)
QString toPlainText ( ) const
void setOuterXml ( const QString markup)
QString toOuterXml ( ) const
void setInnerXml ( const QString markup)
QString toInnerXml ( ) const
void setAttribute ( const QString name,
const QString value 
)
void setAttributeNS ( const QString namespaceUri,
const QString name,
const QString value 
)
QString attribute ( const QString name,
const QString defaultValue = QString() 
) const
QString attributeNS ( const QString namespaceUri,
const QString name,
const QString defaultValue = QString() 
) const
bool hasAttribute ( const QString name) const
bool hasAttributeNS ( const QString namespaceUri,
const QString name 
) const
void removeAttribute ( const QString name)
void removeAttributeNS ( const QString namespaceUri,
const QString name 
)
bool hasAttributes ( ) const
QStringList attributeNames ( const QString namespaceUri = QString()) const
QStringList classes ( ) const
bool hasClass ( const QString name) const
void addClass ( const QString name)
void removeClass ( const QString name)
void toggleClass ( const QString name)
bool hasFocus ( ) const
void setFocus ( )
QRect geometry ( ) const
QString tagName ( ) const
QString prefix ( ) const
QString localName ( ) const
QString namespaceUri ( ) const
QWebElement parent ( ) const
QWebElement firstChild ( ) const
QWebElement lastChild ( ) const
QWebElement nextSibling ( ) const
QWebElement previousSibling ( ) const
QWebElement document ( ) const
QWebFrame* webFrame ( ) const
void appendInside ( const QString markup)
void appendInside ( const QWebElement element)
void prependInside ( const QString markup)
void prependInside ( const QWebElement element)
void appendOutside ( const QString markup)
void appendOutside ( const QWebElement element)
void prependOutside ( const QString markup)
void prependOutside ( const QWebElement element)
void encloseContentsWith ( const QWebElement element)
void encloseContentsWith ( const QString markup)
void encloseWith ( const QString markup)
void encloseWith ( const QWebElement element)
void replace ( const QString markup)
void replace ( const QWebElement element)
QWebElement clone ( ) const
QWebElement& takeFromDocument ( )
void removeFromDocument ( )
void removeAllChildren ( )
QVariant evaluateJavaScript ( const QString scriptSource)
QString styleProperty ( const QString name,
StyleResolveStrategy  strategy 
) const
void setStyleProperty ( const QString name,
const QString value 
)
void render ( QPainter painter)
void render ( QPainter painter,
const QRect clipRect 
)

Friends And Related Function Documentation

friend class DumpRenderTreeSupportQt
friend

Definition at line 167 of file qwebelement.h.

friend class QWebFrame
friend

Definition at line 168 of file qwebelement.h.

friend class QWebElementCollection
friend

Definition at line 169 of file qwebelement.h.

friend class QWebHitTestResult
friend

Definition at line 170 of file qwebelement.h.

friend class QWebHitTestResultPrivate
friend

Definition at line 171 of file qwebelement.h.

friend class QWebPage
friend

Definition at line 172 of file qwebelement.h.

friend class JSC::Bindings::QtWebElementRuntime
friend

Definition at line 177 of file qwebelement.h.


The documentation for this class was generated from the following file: