For example chapter 6: imagechanger_ans.pyw. It remebers the window size and log window position, but not the last accessed images.<br>I think that this has something to do with using QStrings.<br>I just tested the chapter 16 carhirelog.pyw example. By default it does not show the content of License, Customer and Notes columns. But what do they have in common? In CarHireLog class, they are all stored as QStrings. Removing the conversion to QString from the initializer and voilaa - it works. Maybe the recent files problem comes also from QString usage or QStringList conversion - haven&#39;t tested yet.<br>
<br><br><div class="gmail_quote">2009/12/8 Mark Summerfield <span dir="ltr">&lt;<a href="mailto:list@qtrac.plus.com">list@qtrac.plus.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 2009-12-08, Romi Agar wrote:<br>
</div><div class="im">&gt; Everything else seems to be working apart from the little bug with<br>
&gt; saving application settings to Windows registry. It does &quot;remember&quot;<br>
&gt; the application size and position, but recently used files do not get<br>
&gt; loaded when the program is relaunched. I checked, that recently used<br>
&gt; program data gets written to the registry (at least some kind of byte<br>
&gt; array) on application termination, but somewhere in the application<br>
&gt; loading process it gets lost or is not recognised.<br>
<br>
</div>In which particular example(s) does that occur?<br>
<div><div></div><div class="h5"><br>
&gt; 2009/12/8 Mark Summerfield &lt;<a href="mailto:mark@qtrac.eu">mark@qtrac.eu</a>&gt;<br>
&gt;<br>
&gt; &gt; On 2009-12-08, Romi Agar wrote:<br>
&gt; &gt; &gt; Hi!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I seem to be experiencing some problems with custom view examples in<br>
&gt; &gt; &gt; PyQt book. I&#39;m running Win 7 x64, Python 2.6.4rc2, PyQt 4.6.2. The<br>
&gt; &gt; &gt; problem is with chapter 14 and 16 custom view applications. When run,<br>
&gt; &gt; &gt; they show empty tables (no visible data) with different background<br>
&gt; &gt; &gt; color shades on some rows. The Chapter 16 waterquality example has an<br>
&gt; &gt; &gt; empty table with 17508 rows. Does someone maybe know a solution to<br>
&gt; &gt; &gt; this problem?<br>
&gt; &gt;<br>
&gt; &gt; I just tried all the examples in those chapters with:<br>
&gt; &gt; - Python 2.6.2, Qt 4.5.3, PyQt 4.5.1, Linux 32-bit<br>
&gt; &gt; - Python 2.6.4, Qt 4.5.3, PyQt 4.6.2, Windows XP 32-bit<br>
&gt; &gt; and they ran fine. (I ran them from the console from their own<br>
&gt; &gt; directories.)<br>
&gt; &gt;<br>
&gt; &gt; I don&#39;t have Windows 7, so can&#39;t test on your platform.<br>
&gt; &gt;<br>
&gt; &gt; If the problem is with Qt, it might take a while before it is fixed<br>
&gt; &gt; since Windows 7 is a &quot;Tier 2&quot; platform for Qt 4.6 (should be Tier 1 for<br>
&gt; &gt; Qt 4.7), so bugs in Qt for Windows 7 may not get high priority yet.<br>
&gt; &gt; <a href="http://doc.trolltech.com/4.6/supported-platforms.html" target="_blank">http://doc.trolltech.com/4.6/supported-platforms.html</a><br>
&gt; &gt;<br>
&gt; &gt; I haven&#39;t heard of other people having problems like this with Windows 7<br>
&gt; &gt; though---at least not yet. And it is hard to know what the problem<br>
really<br>
&gt; &gt; is, let alone suggest a solution. Do the other examples work okay?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Mark Summerfield, Qtrac Ltd, <a href="http://www.qtrac.eu" target="_blank">www.qtrac.eu</a><br>
&gt; &gt;    C++, Python, Qt, PyQt - training and consultancy<br>
&gt; &gt;        &quot;Advanced Qt Programming&quot; - ISBN 0321635906<br>
&gt;<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Mark Summerfield, Qtrac Ltd, <a href="http://www.qtrac.eu" target="_blank">www.qtrac.eu</a><br>
    C++, Python, Qt, PyQt - training and consultancy<br>
        &quot;Advanced Qt Programming&quot; - ISBN 0321635906<br>
</div></div></blockquote></div><br>