Le 15/08/11 10:51, Vincent Vande Vyvre a écrit :
Hi,
I have a strange effect with hover events and QGraphicsItem.
The example below demonstrate the problem, the hover events are
emitted
only on the border of the item but not on the item himsef.
If I don't draw a border, events are never emitted.
Platform Linux-2.6.32-33-generic-i686-with-Ubuntu-10.04-lucid
Qt 4.6.2 (probably, the problem is here)
Python 2.6.5
PyQt 4.7.2
Sip 4.10.1
Regards
...
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
I found the cause of the problem, the value of alpha channel of the
background color
must be greater than 127 (50%) otherwise the pixmap item is
considered as empty.
But if I append setOpacity(0.3), hover events works correctly,
strange, no ?
Cheers
|
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt