[PyQt] mouse pressed event with qt 4.5
Thomas Espenhain
thomas.espenhain at googlemail.com
Tue Mar 17 11:43:28 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have a strange behavior with the mouse pressed event with pyqt4 with
qt-4.5
Following situation:
- - a stacked widget with 2 pages
- - every page has a button placed at same position
- - button1 on page 1 makes page 2 active
- - button2 on page 2 makes something else
And here is the problem:
If I press button1, the second page gets active but also the button2
pressed-method is executing right now!
The buttons are inherited from qpushbutton. I overwrote the
mousePressedEvent to find out whether the method is also called on
button2 or not. In my suprise the methode is called one time only -
from button1!
The same behavior if pressed-method of button A deletes itself and
makes another button visible at position of button A.
With qt4.4 it works correct.
Pyqt is version 4.4.4 in both cases
Can someone confirm the behavior?
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFJv4zgM34iAr5ELxcRAvZ+AJ9J1g1NBrgXgup73FrQrQZuJ9LPMwCfR6wV
RooTGx4l4rhk5jJSDJTSK5g=
=qDbt
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list