Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Patrick Stinson
Using RTTI sounds like a better idea. Cleaner, more cpp like. Thanks, Phil. On Wednesday 24 September 2003 10:10, Phil Thompson wrote: > On Wednesday 24 September 2003 6:04 pm, Patrick Stinson wrote: > > in progression: > > > > Does the %ConvertToSubClassCode directive require some sort of class >

Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Patrick Stinson
great, thanks Jim. I think I'll get it now. On Wednesday 24 September 2003 09:39, Jim Bublitz wrote: > On Wednesday September 24 2003 10:04, Patrick Stinson wrote: > > in progression: > > > > Does the %ConvertToSubClassCode directive require some sort of > > class identification mechanism to be wr

Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Phil Thompson
On Wednesday 24 September 2003 6:04 pm, Patrick Stinson wrote: > in progression: > > Does the %ConvertToSubClassCode directive require some sort of class > identification mechanism to be written into the original cpp library code? > QEvent returns an enumerated value in type(), as well ass QApplica

Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Jim Bublitz
On Wednesday September 24 2003 10:04, Patrick Stinson wrote: > in progression: > Does the %ConvertToSubClassCode directive require some sort of > class identification mechanism to be written into the original > cpp library code? QEvent returns an enumerated value in > type(), as well ass QApplicat

Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Patrick Stinson
in progression: Does the %ConvertToSubClassCode directive require some sort of class identification mechanism to be written into the original cpp library code? QEvent returns an enumerated value in type(), as well ass QApplication and some others, and QObject has QObject::className() that retur

Re: [PyKDE] sip: C++ virtual methods

2003-09-24 Thread Patrick Stinson
> What do you get when you "print media"? If you get a PK_MediaLayer instance > then maybe you haven't implemented %ConvertToSubClassCode properly. I get a PK_MediaLayer instance. Ok, then, that would make sense. I''l check that code tag... > What versions are you using? [EMAIL PROTECTED] ajol

Re: [PyKDE] sip: C++ virtual methods

2003-09-22 Thread Phil Thompson
On Monday 22 September 2003 6:11 am, Patrick Stinson wrote: > I've been having a never-ending struggle with virtual methods. It seems > that virtual methods wrapped by sip don't always work - that is they > actually end up working like non-virtual functions. This isn't consistent, > and I've never

[PyKDE] sip: C++ virtual methods

2003-09-21 Thread Patrick Stinson
I've been having a never-ending struggle with virtual methods. It seems that virtual methods wrapped by sip don't always work - that is they actually end up working like non-virtual functions. This isn't consistent, and I've never found a solution besides fiddling with it until the _same exact_