![]() |
Home · All Classes · Main Classes · Grouped Classes · Modules · Functions | ![]() |
The QWebFrame class represents a frame in a web page. More...
#include <QWebFrame>
Inherits QObject.
This class was introduced in Qt 4.4.
The QWebFrame class represents a frame in a web page.
QWebFrame represents a frame inside a web page. Each QWebPage object contains at least one frame, the mainFrame(). Additional frames will be created for HTML <frame> or <iframe> elements.
QWebFrame objects are created and controlled by the web page. You can connect to the web pages frameCreated() signal to find out about creation of new frames.
See also QWebPage.
This property defines the horizontal scrollbar policy.
Access functions:
See also Qt::ScrollBarPolicy.
This property defines the vertical scrollbar policy.
Access functions:
See also Qt::ScrollBarPolicy.
Make object available under name from within the frames JavaScript context. The object will be inserted as a child of the frames window object.
Qt properties will be exposed as JavaScript properties and slots as JavaScript methods.
Returns a list of all frames that are direct children of this frame.
This signal is emitted whenever the content of the frame is cleared (e.g. before starting a new load).
Evaluate JavaScript defined by scriptSource using this frame as context.
return the geometry of the frame relative to it's parent frame.
This signal is emitted whenever the mouse cursor is hovering over a link. It can be used to display information about the link in e.g. the status bar. The signal arguments consist of the link destination, the title and the link text as textContent .
The icon associated with this frame.
This signal is emitted when the icon ("favicon") associated with the frame has been loaded.
This signal is emitted when the first (initial) layout of the frame has happened. This is the earliest time something can be shown on the screen.
returns the content of this frame as plain text.
Ensure that the content of the frame and all subframes are correctly layouted.
Load url into this frame.
This is an overloaded member function, provided for convenience.
Load network request req into this frame.
This signal is emitted when the frame is completely loaded. ok will indicate whether the load was successful or any error occurred.
This signal is emitted when a load of the frame is finished.
This signal is emitted when a new load of the frame is started.
returns the markup (HTML) contained in the current frame.
The name of this frame as defined by the parent frame.
The web page that contains this frame.
Returns the parent frame of this frame, or 0 if the frame is the web pages main frame.
This is equivalent to qobject_cast<QWebFrame*>(frame->parent()).
returns the position of the frame relative to it's parent frame.
Render the frame into painter clipping to clip.
returns a dump of the rendering tree. Mainly useful for debugging html.
Sets the content of this frame to data assuming mimeType. If mimeType is not specified it defaults to 'text/html'. baseUrl us optional and used to resolve relative URLs in the document.
Sets the content of this frame to html. baseUrl is optional and used to resolve relative URLs in the document.
This is an overloaded member function, provided for convenience.
The title of the frame as defined by the HTML <title> element.
This signal is emitted whenever the title of the frame changes.
See also title().
The url of this frame.
This signal is emitted whenever the url of the frame changes.
See also url().
Copyright © 2007 Trolltech | Trademarks | Qt 4.4.0-tp1 |