[PyQt] Re: mouseMoveEvent - Delay after mouse move.
mir amicitas
amicitas at gmail.com
Sat Oct 11 23:22:40 BST 2008
Looks like I need a little help to reimplement mouseMoveEvent in python.
First question: Where does the function "offset()" come from. When I try to
use it in python I get an error.
In qabstractitemview.cpp there are a couple places where d->offset() is
called. example:
topLeft = d->pressedPosition - d->offset();
I would think in python that I could rewrite this as:
topLeft = self.pressedPositon - self.offset()
but python can't find the method "offset()". (Is this a even a qt function
or is this something else. I have tried searching the Qt source and I don't
see anything.
Second question: Is there anyway to access the private variables from within
python. In the example is there any way to get to pressedPosition? If not
I will also need to re-implement mousePressEvent as well. (hopfully I wont
have to keep tracking back.)
For now I would rather not have reimplement QAbstractItemView in C++. I
have very little C++ experiance and it would take me a long time to figure
out where to go.
I think I might be in a little over my head, but what better way to learn (I
hope).
-- amicits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081011/00ca01dc/attachment.html
More information about the PyQt
mailing list