Henk Jan Priester wrote:
> When using 4.3.4 the hoverEvent for the item are generated and when using
> QT 4.4 20080312 they
> are not generated.

Hi again, Henk.

This was an intentional behavioral change. The code in your example disables
mouse move and hover events for all items in the scene. In 4.3, only mouse
move events would be disabled (i.e., you couldn't drag items around in 4.3
without calling the base implementation of
QGraphicsScene::mouseMoveEvent()).

The reason the change was made was to allow you to track the mouse for the
scene without reimplementing QGraphicsScene::event() and duplicating the
QGraphicsScene implementation; a serious deficiency in the API. The
drawback of the change is that QGraphicsScene::mouseMoveEvent()
reimplementations must call the base implementation to enable hover events.
It's an unfortunate, but not so common problem, because not calling the
base implementation already disables move events.

Changelog and docs have been updated. Thanks for this feedback!

-- 
Andreas Aardal Hanssen
Senior Software Engineer, Team Lead / Widgets
Trolltech ASA - Sandakerveien 116, NO-0484 Oslo, Norway

To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]

Reply via email to