Re: [PyQt] Overriding only one of two C++ virtual methods with different signature

2008-01-20 Thread Adeodato Simó
* Phil Thompson [Sat, 19 Jan 2008 19:21:10 +]: > You need to handle both cases. Check the type of the argument to determine > which one is called. For the one you aren't interested in, just call the base > implementation... >     def updateSearch(self, arg): >         if not isinstance(arg,

Re: [PyQt] Overriding only one of two C++ virtual methods with different signature

2008-01-19 Thread Phil Thompson
On Saturday 19 January 2008, Adeodato Simó wrote: > Hello. > > I've subclassed in Python from a C++ class that has: > > public slots: > > virtual void updateSearch (const QString &pattern=QString()); > > protected: > > virtual void updateSearch (QTreeWidget *treeWidget); > > I want to p

[PyQt] Overriding only one of two C++ virtual methods with different signature

2008-01-19 Thread Adeodato Simó
Hello. I've subclassed in Python from a C++ class that has: public slots: virtual void updateSearch (const QString &pattern=QString()); protected: virtual void updateSearch (QTreeWidget *treeWidget); I want to provide my own updateSearch(), but only for the slot case. Is this