tags:

views:

78

answers:

1

Hi all,

Here is the situation. I have a class which is derived from a QListView that adds some convenience functions, a custom widget if you like. I do not want to wrestle with the Designer to use my widget. I simply want to use a plain QlistView in the Designer (as a placeholder) and compile it with pyuic4. At runtime I want to replace that normal QListView with my own version.

How can you do this?

I was hoping something like this in the init would do the trick:

self.lstView1 = MyListView

but it doesn't...

A: 
mandel