Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0 Beta4
-
None
-
792ddf542dd5ab5d78d779c80891aaa4d4266d77
Description
For example: anytime you put a WasdController behind a View3D, if the scene contains an Item2D, you will not be able to drag to change the camera angle, because QQuick3DViewport::internalPick() finds the Item2D and delivers the events to it, unless the camera is turned to such an angle that you can mouse somewhere beyond that plane.
It seems like geometry will have to be considered to limit the region receiving events, even though the Item2D is treated like an infinite plane for rendering purposes. But currently QQuick3DItem2D's m_contentItem has a null bounding box. Maybe it needs to be bound to childrenRect() or something like that, so that hit testing can depend on it; or maybe we can use childrenRect() directly.
Also, what if the 2D subscene doesn't actually handle mouse events? Lately event delivery still stops anyway. Earlier I don't think it stopped there.
Attachments
Issue Links
- relates to
-
QTBUG-96514 Item declared in a Node or Model creates an Item2D immediately; reparenting leaves behind an empty 2D subscene
- Open
-
QTBUG-93095 View3D picking breaks if 2D Quick Item added to scene
- Closed
-
QTBUG-105024 QtQuick3D - problem with object picking when node with QtQuick 2D component is inside 3D view
- Closed
-
QTBUG-79026 WasdController can't get control of keyboard back after using UI element
- Closed
For Gerrit Dashboard: QTBUG-96457 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
370900,3 | QQuick3DViewport::internalPick: ignore empty Item2D subscenes | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
370901,3 | QQuick3DViewport::internalPick: ignore hits outside Item2D.childrenRect | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
371403,2 | QQuick3DViewport::internalPick: ignore hits outside Item2D.childrenRect | 6.2 | qt/qtquick3d | Status: MERGED | +2 | 0 |
371709,2 | QQuick3DViewport::internalPick: ignore empty Item2D subscenes | 6.2 | qt/qtquick3d | Status: MERGED | +2 | 0 |