1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QWebHistoryItem Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QWebHistoryItem Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QWebHistoryItem class represents one item in the history of a <a href="qwebpage.html">QWebPage</a> <a href="#details">More...</a></p>
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qwebhistoryitem.html#QWebHistoryItem">__init__</a></b> (<i>self</i>, QWebHistoryItem)</li><li><div class="fn" />QIcon <b><a href="qwebhistoryitem.html#icon">icon</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebhistoryitem.html#isValid">isValid</a></b> (<i>self</i>)</li><li><div class="fn" />QDateTime <b><a href="qwebhistoryitem.html#lastVisited">lastVisited</a></b> (<i>self</i>)</li><li><div class="fn" />QUrl <b><a href="qwebhistoryitem.html#originalUrl">originalUrl</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebhistoryitem.html#setUserData">setUserData</a></b> (<i>self</i>, QVariant)</li><li><div class="fn" />QString <b><a href="qwebhistoryitem.html#title">title</a></b> (<i>self</i>)</li><li><div class="fn" />QUrl <b><a href="qwebhistoryitem.html#url">url</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qwebhistoryitem.html#userData">userData</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QWebHistoryItem class represents one item in the history of a <a href="qwebpage.html">QWebPage</a></p>
<p>Each QWebHistoryItem instance represents an entry in the history stack of a Web page, containing information about the page, its location, and when it was last visited.</p>
<p>The following table shows the properties of the page held by the history item, and the functions used to access them.</p>
<p><table align="center" border="0" cellpadding="2" cellspacing="1" class="generic">
<thead><tr class="qt-style" valign="top"><th>Function</th><th>Description</th></tr></thead>
<tr class="odd" valign="top"><td><a href="qwebhistoryitem.html#title">title</a>()</td><td>The page title.</td></tr>
<tr class="even" valign="top"><td><a href="qwebhistoryitem.html#url">url</a>()</td><td>The location of the page.</td></tr>
<tr class="odd" valign="top"><td><a href="qwebhistoryitem.html#originalUrl">originalUrl</a>()</td><td>The URL used to access the page.</td></tr>
<tr class="even" valign="top"><td><a href="qwebhistoryitem.html#lastVisited">lastVisited</a>()</td><td>The date and time of the user's last visit to the page.</td></tr>
<tr class="odd" valign="top"><td><a href="qwebhistoryitem.html#icon">icon</a>()</td><td>The icon associated with the page that was provided by the server.</td></tr>
<tr class="even" valign="top"><td><a href="qwebhistoryitem.html#userData">userData</a>()</td><td>The user specific data that was stored with the history item.</td></tr>
</table></p>
<p><b>Note:</b> QWebHistoryItem objects are value based, but <i>explicitly shared</i>. Changing a QWebHistoryItem instance by calling <a href="qwebhistoryitem.html#setUserData">setUserData</a>() will change all copies of that instance.</p>
<p>See also <a href="qwebhistory.html">QWebHistory</a>, <a href="qwebpage.html#history">QWebPage.history</a>(), and <a href="qwebhistoryinterface.html">QWebHistoryInterface</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QWebHistoryItem" />QWebHistoryItem.__init__ (<i>self</i>, <a href="qwebhistoryitem.html">QWebHistoryItem</a>)</h3><p>Constructs a history item from <i>other</i>. The new item and <i>other</i> will share their data, and modifying either this item or <i>other</i> will modify both instances.</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/~QWebHistoryItem" />
<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QWebHistoryItem.icon (<i>self</i>)</h3><p>Returns the icon associated with the history item.</p>
<p>See also <a href="qwebhistoryitem.html#title">title</a>(), <a href="qwebhistoryitem.html#url">url</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/isValid" />
<h3 class="fn"><a name="isValid" />bool QWebHistoryItem.isValid (<i>self</i>)</h3><p>Returns whether this is a valid history item.</p>
<p>This function was introduced in Qt 4.5.</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/lastVisited" />
<h3 class="fn"><a name="lastVisited" /><a href="qdatetime.html">QDateTime</a> QWebHistoryItem.lastVisited (<i>self</i>)</h3><p>Returns the date and time that the page associated with the item was last visited.</p>
<p>See also <a href="qwebhistoryitem.html#title">title</a>(), <a href="qwebhistoryitem.html#icon">icon</a>(), and <a href="qwebhistoryitem.html#url">url</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/originalUrl" />
<h3 class="fn"><a name="originalUrl" /><a href="qurl.html">QUrl</a> QWebHistoryItem.originalUrl (<i>self</i>)</h3><p>Returns the original URL associated with the history item.</p>
<p>See also <a href="qwebhistoryitem.html#url">url</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/setUserData" />
<h3 class="fn"><a name="setUserData" />QWebHistoryItem.setUserData (<i>self</i>, QVariant)</h3><p>Stores user specific data <i>userData</i> with the history item.</p>
<p><b>Note:</b> All copies of this item will be modified.</p>
<p>This function was introduced in Qt 4.5.</p>
<p>See also <a href="qwebhistoryitem.html#userData">userData</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/title" />
<h3 class="fn"><a name="title" />QString QWebHistoryItem.title (<i>self</i>)</h3><p>Returns the title of the page associated with the history item.</p>
<p>See also <a href="qwebhistoryitem.html#icon">icon</a>(), <a href="qwebhistoryitem.html#url">url</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/url" />
<h3 class="fn"><a name="url" /><a href="qurl.html">QUrl</a> QWebHistoryItem.url (<i>self</i>)</h3><p>Returns the URL associated with the history item.</p>
<p>See also <a href="qwebhistoryitem.html#originalUrl">originalUrl</a>(), <a href="qwebhistoryitem.html#title">title</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/userData" />
<h3 class="fn"><a name="userData" />QVariant QWebHistoryItem.userData (<i>self</i>)</h3><p>Returns the user specific data that was stored with the history item.</p>
<p>This function was introduced in Qt 4.5.</p>
<p>See also <a href="qwebhistoryitem.html#setUserData">setUserData</a>().</p>
<a name="//apple_ref/cpp/instm/QWebHistoryItem/operator=" />
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|