![]() |
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 holds the icon associated with this frame.
Access functions:
This property holds the scaling factor for all text in the frame.
Access functions:
This property holds the title of the frame as defined by the HTML <title> element.
Access functions:
This property holds the url of the frame currently viewed.
Access functions:
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.
Evaluate JavaScript defined by scriptSource using this frame as context.
The name of this frame as defined by the parent frame.
return the geometry of the frame relative to it's parent 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.
This signal is emitted whenever the global window object of the JavaScript environment is cleared (e.g. before starting a new load).
Loads url into this frame.
Note: The view remains the same until enough data has arrived to display the new url.
This is an overloaded member function, provided for convenience.
Loads a network request, req, into this frame.
Note: The view remains the same until enough data has arrived to display the new url.
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.
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.
Prints the frame to the given printer.
Render the frame into painter clipping to clip.
This is an overloaded member function, provided for convenience.
Render the frame into painter.
returns a dump of the rendering tree. Mainly useful for debugging html.
Returns the maximum value for the scrollbar with orientation orientation, or 0 if no scrollbar is found for orientation.
Returns the minimum value for the scrollbar with orientation orientation.
The minimum value is always 0.
Returns the scrollbar policy for the scrollbar defined by orientation.
See also setScrollBarPolicy().
Returns the current value for the scrollbar with orientation orientation, or 0 if no scrollbar is found for orientation.
See also setScrollBarValue().
Sets the content of this frame to the specified content data. If the mimeType argument is empty it is currently assumed that the content is HTML but in future versions we may introduce auto-detection.
External objects referenced in the content are located relative to baseUrl.
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.
Sets the scrollbar policy for the scrollbar defined by orientation to policy.
See also scrollBarPolicy().
Sets the current value for the scrollbar with orientation orientation.
The scrollbar forces the value to be within the legal range: minimum <= value <= maximum.
Changing the value also updates the thumb position.
See also scrollBarValue().
This signal is emitted whenever the title of the frame changes. The title string specifies the new title.
See also title().
returns the markup (HTML) contained in the current frame.
returns the content of this frame as plain text.
This signal is emitted whenever the url of the frame changes.
See also url().
Copyright © 2008 Trolltech | Trademarks | Qt 4.4.0-beta1 |