diff options
author | Antti Määttä <antti.maatta@qt.io> | 2017-03-13 09:32:53 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-05-09 08:59:31 +0000 |
commit | 337bc59bb3a162d1a64b05d1dc82b5ec4b99049d (patch) | |
tree | be59c1e4147cdb5b3d54a01ad00f2839108cd6aa /examples/qt3d/scene2d/main.cpp | |
parent | 1178d7538bced76d1475b214cd591d86609239f3 (diff) |
Scene2D cleanup - register pick events when scene is initialized
The current model where mouseGrab is connected to picker signal
doesn't work. The pressed event is not sent to scene2d item, because it is
already lost when scene2d gets the grabMouse message where it registers to
the picker events. This breaks the mouse event sequence
(press-move-release) for the quick item.
Instead hook to setScene of the node to message scene2d when the scene gets
initialized and always register to the picker events.
Task-number: QTBUG-58876
Change-Id: Ic9ca4b0899a030336ef20ff2cffbe10b567c36f5
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Diffstat (limited to 'examples/qt3d/scene2d/main.cpp')
0 files changed, 0 insertions, 0 deletions