File: qwebhistoryitem.html

package info (click to toggle)
python-qt4 4.12.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 40,300 kB
  • ctags: 6,185
  • sloc: python: 125,988; cpp: 13,291; xml: 292; makefile: 246; php: 27; sh: 2
file content (102 lines) | stat: -rw-r--r-- 7,373 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?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">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <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&#160;<i>other</i>)</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&#160;<i>userData</i>)</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>
<table class="generic">
<thead>
<tr class="qt-style">
<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><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>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QWebHistoryItem" />QWebHistoryItem.__init__ (<i>self</i>, <a href="qwebhistoryitem.html">QWebHistoryItem</a>&#160;<i>other</i>)</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>


<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><b>See also</b> <a href="qwebhistoryitem.html#title">title</a>(), <a href="qwebhistoryitem.html#url">url</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>


<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>


<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><b>See also</b> <a href="qwebhistoryitem.html#title">title</a>(), <a href="qwebhistoryitem.html#icon">icon</a>(), and <a href="qwebhistoryitem.html#url">url</a>().</p>


<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><b>See also</b> <a href="qwebhistoryitem.html#url">url</a>().</p>


<h3 class="fn"><a name="setUserData" />QWebHistoryItem.setUserData (<i>self</i>, QVariant&#160;<i>userData</i>)</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><b>See also</b> <a href="qwebhistoryitem.html#userData">userData</a>().</p>


<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><b>See also</b> <a href="qwebhistoryitem.html#icon">icon</a>(),
<a href="qwebhistoryitem.html#url">url</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>


<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><b>See also</b> <a href="qwebhistoryitem.html#originalUrl">originalUrl</a>(), <a href="qwebhistoryitem.html#title">title</a>(), and <a href="qwebhistoryitem.html#lastVisited">lastVisited</a>().</p>


<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><b>See also</b> <a href="qwebhistoryitem.html#setUserData">setUserData</a>().</p>


<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.12.1 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qt.io">The Qt Company</a> 2015</td><td align="right" width="25%">Qt&#160;4.8.7</td></tr></table></div></address></body></html>