[PyKDE] virtual functions not getting executed

Landshark landshark at verticaladdiction.net
Sun Feb 23 01:53:01 GMT 2003


On Sat, Feb 22, 2003 at 10:43:57PM +0000, Phil Thompson wrote:
> > I created a subclass of QListViewItem and then wrote my own
> > paintCell(...) function.
> >
> > However, this function never gets called, only the baseclass's paintCell
> > gets called.
> 
> Can you provide a small, complete example that demonstrates the problem?

Sorry.  You'll have to excuse me.  I'm retarded :)

I was doing:

def __init(self, *args):
    QListViewItem(*args)

    instead of QListViewItem.__init__(self, *args)

Sorry about that.

-- 
-dave

Duct tape is like the force.  It has a light side and a dark side,
and it holds the universe together.  - Carl Zwanzig




More information about the PyQt mailing list