[PyQt] Perhaps a bug with virtual methods?

Phil Thompson phil at riverbankcomputing.com
Mon May 19 10:49:26 BST 2008


On Monday 19 May 2008 09:54:04 Andrew Perella wrote:
> Thanks Phil,
> In my case there is a B::Enter on the c++ side - I just didn't want to
> expose it. The class is sipped just so that we can pass pointers to class C
> to functions that expect class B.
> I realise now that you expect all virtual methods to be mentioned in every
> class in the sip file. Would it not make sense just to call B::Enter anyway
> even if sip doesn't know about it?

Explicit is better. There are times when you genuinely want to lie to SIP to 
control exactly what it does. This would become difficult if SIP was making 
its own assumptions.

Phil


More information about the PyQt mailing list