[PyKDE] QWidgetFactory.create & installEventFilter

Andrew Smart Andrew.Smart at smart-knowhow.de
Fri Aug 22 11:25:00 BST 2003


I'm using pyqt 3.7 with Qt 3.1.2.

I try to create dynamically a Dialog out of a "ui" file 
and install an eventHandler afterwards.

class EventMgr(QObject):
    def __init__(self):
    def eventFilter(self, object, event):
            if (event.type() == QEvent.Close):
                print "QEvent.Close"

def OtherFunc:
      myEventMgr = EventMgr()
	myDialog = qtui.QWidgetFactory.create(sFile + ".ui")

If I try to run the programm I get the error AttributError
"sipThis" in the line of installEventFilter.

Can someone give me an hint?


More information about the PyQt mailing list