On Tue, 8 Dec 2009 11:48:17 +0000, Mark Summerfield <[email protected]> wrote: > On 2009-12-08, Romi Agar wrote: >> For example chapter 6: imagechanger_ans.pyw. It remebers the window size >> and log window position, but not the last accessed images. >> I think that this has something to do with using QStrings. >> 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't tested yet. > > Ah, okay, it sounds like you're on the right track. Maybe your PyQt is > using API 2 rather than API 1---all the examples only work for API 1 > (which was the only API that existed when the book was written). But API > 2 is not supposed to be the default for Python 2 and you say you're > using Python 2.6...
...make sure PyQt is built with SIP v4.9.3. Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
