Hello i have just installed pydev because of code completition. my first sketch is some simple qt widget.
i'm ovverriding mouseMoveEvent:
def mouseMoveEvent(self, event):
mouse = event.pos()
now.. i know that event variable is a QtCore.QPoint type.. but code completition does not work.. ok i understand it: there is no hard typing, there is duck typing, in theory event could be of any possible type..
instead if i have this code:
point = QtCore.QPoint()
when i write point. code completition works fine (of course it knows the type without doubt!)
i want code completition also in overriding mouseMoveEvent.. what else can i do besides change language and shift in c++ or java?
SOLUTION: as gary pointed me in this thread this trick works:
def mouseMoveEvent(self, event):
assert(isinstance(event, QtGui.QMouseEvent))
mouse = event.