On Sunday 04 December 2005 11:03 pm, Giovanni Bajo wrote: > David Boddie <[EMAIL PROTECTED]> wrote: > >> Yes - I shouldn't have used the word "bug". > >> > >> SIP doesn't support automatic type converters like C++ does, so I've > >> been adding %ConvertToTypeCode in various places to make things a > >> bit more convenient. This is one such place. > > > > I can't remember whether PyQt3 supported this, but it would also be > > quite useful to have convenience convertors for QBrush(QColor(...)) > > and QPen(QColor(...)). I'm sure there are many more of these waiting > > to be discovered! > > Or maybe adding support to SIP for automatic conversion could be done. I > understand it mustn't be easy though!
It's been on the TODO list for a long time, and PyQt4 captures Qt's use of "explicit" (and ignores it) - so the hooks are now there to add the support at a later date. Phil _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
