Aha, it's actually built with SIP v4.9.2.<br><br>If I specifically use API#2 QStrings and make the according fixes in the code, it works fine.<br>Updating to SIP v4.9.3 also fixes all the bugs I mentioned. Thanks for the tip Phil.<br>
<br><div class="gmail_quote">2009/12/8 Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 8 Dec 2009 11:48:17 +0000, Mark Summerfield <<a href="mailto:list@qtrac.plus.com">list@qtrac.plus.com</a>><br>
wrote:<br>
<div class="im">> On 2009-12-08, Romi Agar wrote:<br>
>> For example chapter 6: imagechanger_ans.pyw. It remebers the window size<br>
>> 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<br>
> not<br>
>> show the content of License, Customer and Notes columns. But what do<br>
they<br>
>> have in common? In CarHireLog class, they are all stored as QStrings.<br>
>> Removing the conversion to QString from the initializer and voilaa - it<br>
>> works. Maybe the recent files problem comes also from QString usage or<br>
>> QStringList conversion - haven't tested yet.<br>
><br>
> Ah, okay, it sounds like you're on the right track. Maybe your PyQt is<br>
> using API 2 rather than API 1---all the examples only work for API 1<br>
> (which was the only API that existed when the book was written). But API<br>
> 2 is not supposed to be the default for Python 2 and you say you're<br>
> using Python 2.6...<br>
<br>
</div>...make sure PyQt is built with SIP v4.9.3.<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br>