File: incompatibilities.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 (343 lines) | stat: -rw-r--r-- 24,960 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Potential Incompatibilities with Earlier Versions &#8212; PyQt 4.12.1 Reference Guide</title>
    
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '4.12.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/logo_tn.ico"/>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Installing PyQt4" href="installation.html" />
    <link rel="prev" title="Introduction" href="introduction.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="installation.html" title="Installing PyQt4"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="introduction.html" title="Introduction"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">PyQt 4.12.1 Reference Guide</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="potential-incompatibilities-with-earlier-versions">
<h1>Potential Incompatibilities with Earlier Versions<a class="headerlink" href="#potential-incompatibilities-with-earlier-versions" title="Permalink to this headline">¶</a></h1>
<div class="section" id="pyqt4-v4-11">
<h2>PyQt4 v4.11<a class="headerlink" href="#pyqt4-v4-11" title="Permalink to this headline">¶</a></h2>
<div class="section" id="execution-of-python-slots">
<h3>Execution of Python Slots<a class="headerlink" href="#execution-of-python-slots" title="Permalink to this headline">¶</a></h3>
<p>Until the release of PyQt4 v4.9.4, when a signal was emitted to a Python slot
that was not decorated with <a class="reference internal" href="new_style_signals_slots.html#PyQt4.QtCore.pyqtSlot" title="PyQt4.QtCore.pyqtSlot"><code class="xref py py-func docutils literal"><span class="pre">pyqtSlot()</span></code></a>, it would first
check that the underlying C++ receiver instance still existed.  If it didn’t
then the slot was ignored thereby reflecting the standard C++ behaviour.</p>
<p>In v4.9.4 (strictly speaking it was the release of SIP at the time) the check
was removed. It was done so that an object could connect its
<code class="xref py py-func docutils literal"><span class="pre">destroyed()</span></code> signal to itself so that it could
monitor when its underlying C++ instance was destroyed.  Unfortunately this
turned out to be an undocumented and incompatible change and a potential source
of obscure bugs for more common code.</p>
<p>In v4.11 the check was reintroduced - hence creating an incompatibility for any
code that relies on the v4.9.4 behaviour.  As a workaround for this the
<code class="docutils literal"><span class="pre">no_receiver_check</span></code> argument has been added to
<code class="xref py py-func docutils literal"><span class="pre">connect()</span></code> which allows the check to be suppressed
on a per connection basis.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-12">
<h2>PyQt4 v4.12<a class="headerlink" href="#pyqt4-v4-12" title="Permalink to this headline">¶</a></h2>
<div class="section" id="qswap">
<h3>qSwap()<a class="headerlink" href="#qswap" title="Permalink to this headline">¶</a></h3>
<p>The support for <code class="docutils literal"><span class="pre">qSwap()</span></code> has been removed from all modules.  Classes that
are supported by this function have a <code class="docutils literal"><span class="pre">swap()</span></code> method which can be used
instead.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-9-2">
<h2>PyQt4 v4.9.2<a class="headerlink" href="#pyqt4-v4-9-2" title="Permalink to this headline">¶</a></h2>
<div class="section" id="qpynullvariant">
<h3>QPyNullVariant<a class="headerlink" href="#qpynullvariant" title="Permalink to this headline">¶</a></h3>
<p>In previous versions a <code class="docutils literal"><span class="pre">QPyNullVariant</span></code> would always evaluate to <code class="docutils literal"><span class="pre">True</span></code>
when converted to a bool.</p>
<p>In this version a <code class="docutils literal"><span class="pre">QPyNullVariant</span></code> will always evaluate to <code class="docutils literal"><span class="pre">False</span></code> when
converted to a bool.  This makes it behave like <code class="docutils literal"><span class="pre">None</span></code> in these
circumstances.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-8-3">
<h2>PyQt4 v4.8.3<a class="headerlink" href="#pyqt4-v4-8-3" title="Permalink to this headline">¶</a></h2>
<div class="section" id="sql-models">
<h3>SQL Models<a class="headerlink" href="#sql-models" title="Permalink to this headline">¶</a></h3>
<p>In previous versions, when using v2 of the QVariant API (the default for Python
v3), there was no way to represent a null <code class="docutils literal"><span class="pre">QVariant</span></code>.  Therefore when reading
values of certain types from an SQL model it was impossible to distinguish
between, for example, a null integer and an integer with the value zero.</p>
<p>In this version the <code class="docutils literal"><span class="pre">QPyNullVariant</span></code> class is used to represent a null
QVariant.  Therefore the object read from an SQL model may now be a
<code class="docutils literal"><span class="pre">QPyNullVariant</span></code> instance.</p>
<p>A null <code class="docutils literal"><span class="pre">QVariant</span></code> is only converted to a <code class="docutils literal"><span class="pre">QPyNullVariant</span></code> if the underlying
C++ type of the <code class="docutils literal"><span class="pre">QVariant</span></code> cannot be tested for null, i.e. it does not
implement an <code class="docutils literal"><span class="pre">isNull()</span></code> method.  This ensures that existing code that uses
non-SQL models will continue to work unchanged.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-8">
<h2>PyQt4 v4.8<a class="headerlink" href="#pyqt4-v4-8" title="Permalink to this headline">¶</a></h2>
<div class="section" id="qvariantlist">
<h3>QVariantList<a class="headerlink" href="#qvariantlist" title="Permalink to this headline">¶</a></h3>
<p>In previous versions PyQt4 would always try and convert a Python list to a
<code class="docutils literal"><span class="pre">QVariantList</span></code>.  In this version PyQt4 will first try to convert it to a
<code class="docutils literal"><span class="pre">QVariant</span></code> containing a <code class="docutils literal"><span class="pre">QList&lt;QObject</span> <span class="pre">*&gt;</span></code>, but only if
<code class="docutils literal"><span class="pre">QList&lt;QObject</span> <span class="pre">*&gt;</span></code> has been registered with Qt as a meta-type.</p>
<p>Normally it is only the <code class="xref py py-mod docutils literal"><span class="pre">QtDeclarative</span></code> module that registers this
meta-type and so the behaviour of existing applications should be unchanged.
It is possible however that you might observe different conversion behaviour
after importing the <code class="xref py py-mod docutils literal"><span class="pre">QtDeclarative</span></code> module.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-7-4">
<h2>PyQt4 v4.7.4<a class="headerlink" href="#pyqt4-v4-7-4" title="Permalink to this headline">¶</a></h2>
<div class="section" id="pyqtsignal-with-dict-and-list">
<h3><a class="reference internal" href="new_style_signals_slots.html#PyQt4.QtCore.pyqtSignal" title="PyQt4.QtCore.pyqtSignal"><code class="xref py py-func docutils literal"><span class="pre">pyqtSignal()</span></code></a> with dict and list<a class="headerlink" href="#pyqtsignal-with-dict-and-list" title="Permalink to this headline">¶</a></h3>
<p>In previous versions a Qt signal defined using
<a class="reference internal" href="new_style_signals_slots.html#PyQt4.QtCore.pyqtSignal" title="PyQt4.QtCore.pyqtSignal"><code class="xref py py-func docutils literal"><span class="pre">pyqtSignal()</span></code></a> that had an argument specified as a dict then,
when emitting a value, PyQt4 would try and convert the value to a
<code class="docutils literal"><span class="pre">QVariantMap</span></code> if possible.  If it wasn’t possible, normally because the dict
had non-string keys, then the value would be left as a dict object.</p>
<p>In this version PyQt4 will not attempt to convert the value to a
<code class="docutils literal"><span class="pre">QVariantMap</span></code> and will always leave it as a dict object.  If you want the
value to be converted to a <code class="docutils literal"><span class="pre">QVariantMap</span></code> then define the signal argument as
<code class="docutils literal"><span class="pre">'QVariantMap'</span></code>.</p>
<p>The same applies to conversions between lists and <code class="docutils literal"><span class="pre">QVariantList</span></code>.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-7-1">
<h2>PyQt4 v4.7.1<a class="headerlink" href="#pyqt4-v4-7-1" title="Permalink to this headline">¶</a></h2>
<div class="section" id="qvariant">
<h3>QVariant<a class="headerlink" href="#qvariant" title="Permalink to this headline">¶</a></h3>
<p>This version introduces a slight incompatibility in the conversion between
sub-classes of standard Python types and <code class="docutils literal"><span class="pre">QVariant</span></code>.</p>
<p>Take, for example, the following code:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">PyQt4.QtCore</span> <span class="k">import</span> <span class="n">QVariant</span>

<span class="k">class</span> <span class="nc">MyFloat</span><span class="p">(</span><span class="nb">float</span><span class="p">):</span>
    <span class="k">pass</span>

<span class="n">myfloat</span> <span class="o">=</span> <span class="n">MyFloat</span><span class="p">(</span><span class="mf">5.0</span><span class="p">)</span>
<span class="n">variant</span> <span class="o">=</span> <span class="n">QVariant</span><span class="p">(</span><span class="n">myfloat</span><span class="p">)</span>
</pre></div>
</div>
<p>With this version of PyQt4 <code class="docutils literal"><span class="pre">myfloat</span></code> will be converted in such a way as to
preserve any additional attributes (including methods) and will not be
converted to a C++ <code class="docutils literal"><span class="pre">double</span></code>.  In other words, the following assertions are
true:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">type</span><span class="p">()</span> <span class="o">!=</span> <span class="n">QVariant</span><span class="o">.</span><span class="n">Double</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">()</span> <span class="ow">is</span> <span class="n">myfloat</span><span class="p">)</span>
</pre></div>
</div>
<p>Prior to this version <code class="docutils literal"><span class="pre">myfloat</span></code> would be converted to a C++ <code class="docutils literal"><span class="pre">double</span></code>.  In
other words, the following assertions would be true:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">type</span><span class="p">()</span> <span class="o">==</span> <span class="n">QVariant</span><span class="o">.</span><span class="n">Double</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">()</span> <span class="o">==</span> <span class="n">myfloat</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">())</span> <span class="ow">is</span> <span class="nb">float</span><span class="p">)</span>
</pre></div>
</div>
<p>The same change also affects objects that implement the sequence protocol.
Prior to this version such an object would be converted to a <code class="docutils literal"><span class="pre">QVariantList</span></code>
which would mean that it was converted back to a Python <code class="docutils literal"><span class="pre">list</span></code> rather than to
the original type.</p>
</div>
</div>
<div class="section" id="pyqt4-v4-5">
<h2>PyQt4 v4.5<a class="headerlink" href="#pyqt4-v4-5" title="Permalink to this headline">¶</a></h2>
<div class="section" id="id1">
<h3>QVariant<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
<p>This version introduces a slight incompatibility in the conversion between
Python sub-classes of certain Qt classes and <code class="docutils literal"><span class="pre">QVariant</span></code>.  The Qt classes
affected are those that <code class="docutils literal"><span class="pre">QVariant</span></code> has explicit support for, e.g. <code class="docutils literal"><span class="pre">QSize</span></code>,
<code class="docutils literal"><span class="pre">QBitmap</span></code>.</p>
<p>Take, for example, the following code:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">PyQt4.QtCore</span> <span class="k">import</span> <span class="n">QSize</span><span class="p">,</span> <span class="n">QVariant</span>

<span class="k">class</span> <span class="nc">MySize</span><span class="p">(</span><span class="n">QSize</span><span class="p">):</span>
    <span class="k">pass</span>

<span class="n">mysize</span> <span class="o">=</span> <span class="n">MySize</span><span class="p">(</span><span class="mi">5</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span>
<span class="n">variant</span> <span class="o">=</span> <span class="n">QVariant</span><span class="p">(</span><span class="n">mysize</span><span class="p">)</span>
</pre></div>
</div>
<p>With this version of PyQt4 <code class="docutils literal"><span class="pre">mysize</span></code> will be converted in such a way as to
preserve any additional attributes (including methods) and will not be
converted to a C++ <code class="docutils literal"><span class="pre">QSize</span></code> instance.  In other words, the following
assertions are true:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">type</span><span class="p">()</span> <span class="o">!=</span> <span class="n">QVariant</span><span class="o">.</span><span class="n">Size</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">()</span> <span class="ow">is</span> <span class="n">mysize</span><span class="p">)</span>
</pre></div>
</div>
<p>Prior to this version <code class="docutils literal"><span class="pre">mysize</span></code> would be converted to a C++ <code class="docutils literal"><span class="pre">QSize</span></code>
instance.  In other words, the following assertions would be true:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">type</span><span class="p">()</span> <span class="o">==</span> <span class="n">QVariant</span><span class="o">.</span><span class="n">Size</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">()</span> <span class="o">==</span> <span class="n">mysize</span><span class="p">)</span>
<span class="k">assert</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">variant</span><span class="o">.</span><span class="n">toPyObject</span><span class="p">())</span> <span class="ow">is</span> <span class="n">QSize</span><span class="p">)</span>
</pre></div>
</div>
<p>It is hoped that this change of behaviour will not have a significant impact.
However if you need the old behaviour then simply create a copy of your
sub-class instance using the base class constructor as shown below:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">variant</span> <span class="o">=</span> <span class="n">QVariant</span><span class="p">(</span><span class="n">QSize</span><span class="p">(</span><span class="n">mysize</span><span class="p">))</span>
</pre></div>
</div>
<p>A similar issue also affects the conversion of the Python <code class="docutils literal"><span class="pre">datetime</span></code>,
<code class="docutils literal"><span class="pre">date</span></code> and <code class="docutils literal"><span class="pre">time</span></code> types to <code class="docutils literal"><span class="pre">QVariant</span></code>.  These are no longer converted to
the corresponding <code class="docutils literal"><span class="pre">QDateTime</span></code>, <code class="docutils literal"><span class="pre">QDate</span></code> and <code class="docutils literal"><span class="pre">QTime</span></code> classes.  The values
can be retrieved using <code class="docutils literal"><span class="pre">QVariant.toPyObject()</span></code>.  Again, the old behaviour can
be achieved using an explicit conversion to the Qt class before converting to
<code class="docutils literal"><span class="pre">QVariant</span></code>.</p>
<p>A further incompatible change is the handling of Python sub-classes of
<code class="docutils literal"><span class="pre">QObject</span></code>.  In previous versions <code class="docutils literal"><span class="pre">QVariant.userType()</span></code> would return an
internal type and an extra reference would be kept to the Python object.  In
the current version <code class="docutils literal"><span class="pre">QVariant.userType()</span></code> will correctly return
<code class="docutils literal"><span class="pre">QMetaType.QObjectStar</span></code> (or <code class="docutils literal"><span class="pre">QMetaType.QWidgetStar</span></code>) but an extra
reference to the Python object is not kept.  To avoid a potential crash you
should ensure that you keep a separate reference to the Python object, either
explicitly or implicitly by giving it a parent.</p>
</div>
<div class="section" id="pyrcc4-support-for-python-v3">
<h3><strong class="program">pyrcc4</strong> Support for Python v3<a class="headerlink" href="#pyrcc4-support-for-python-v3" title="Permalink to this headline">¶</a></h3>
<p><strong class="program">pyrcc4</strong> will now generate code for Python v3 when the new
<a class="reference internal" href="resources.html#cmdoption-pyrcc4-py3"><code class="xref std std-option docutils literal"><span class="pre">-py3</span></code></a> command line option is used.  The generated code
will also work with Python v2.6 and later.</p>
<p>By default <strong class="program">pyrcc4</strong> will generate code for all Python v2 versions but
you should use the new <a class="reference internal" href="resources.html#cmdoption-pyrcc4-py2"><code class="xref std std-option docutils literal"><span class="pre">-py2</span></code></a> command line option to
enforce this in case the default is changed in the future.</p>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="index.html">
              <img class="logo" src="_static/logo.png" alt="Logo"/>
            </a></p>
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Potential Incompatibilities with Earlier Versions</a><ul>
<li><a class="reference internal" href="#pyqt4-v4-11">PyQt4 v4.11</a><ul>
<li><a class="reference internal" href="#execution-of-python-slots">Execution of Python Slots</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-12">PyQt4 v4.12</a><ul>
<li><a class="reference internal" href="#qswap">qSwap()</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-9-2">PyQt4 v4.9.2</a><ul>
<li><a class="reference internal" href="#qpynullvariant">QPyNullVariant</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-8-3">PyQt4 v4.8.3</a><ul>
<li><a class="reference internal" href="#sql-models">SQL Models</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-8">PyQt4 v4.8</a><ul>
<li><a class="reference internal" href="#qvariantlist">QVariantList</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-7-4">PyQt4 v4.7.4</a><ul>
<li><a class="reference internal" href="#pyqtsignal-with-dict-and-list"><code class="docutils literal"><span class="pre">pyqtSignal()</span></code> with dict and list</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-7-1">PyQt4 v4.7.1</a><ul>
<li><a class="reference internal" href="#qvariant">QVariant</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pyqt4-v4-5">PyQt4 v4.5</a><ul>
<li><a class="reference internal" href="#id1">QVariant</a></li>
<li><a class="reference internal" href="#pyrcc4-support-for-python-v3"><strong class="program">pyrcc4</strong> Support for Python v3</a></li>
</ul>
</li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="introduction.html"
                        title="previous chapter">Introduction</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="installation.html"
                        title="next chapter">Installing PyQt4</a></p>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="installation.html" title="Installing PyQt4"
             >next</a> |</li>
        <li class="right" >
          <a href="introduction.html" title="Introduction"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">PyQt 4.12.1 Reference Guide</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2016 Riverbank Computing Limited.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.2.
    </div>
  </body>
</html>