Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75062

QObjectPicker::entered signal emited from incorrect Picker when Mouse is Pressed while dragging from one picker to another

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.1
    • Qt3D
    • None
    • Microsoft VS2017 Qt5.12.1
    • Windows

    Description

      I have an example with 3 triangles.

      When I perform the following actions the "entered" signal when hovering does not change.

      1. while hovering over a trinagle, press left mouse button ( and keep it down )
      2. drag to another triangle ( which also have an object picker – they all have )
      3. and then release the mouse button without exiting the second triangle
      4. now hovering over any triangle will signal "exited" via the correct slot, but the entered signal will continue to be the triangle from step1 i.e. a wrong slot gets the signal (until a mouse click is perforformed, which seems to get the state "aligned" ).

      My usecase is to use the hover functionality to automatically inspect/reflect the triangle under the QObjectPicker, but I still want to be able to left drag with the mouse in order to change the camera view. As it is now I must be carefull not to click on a pickable object when I want to change the camera view.

       

      Attachments

        1. main.cpp
          8 kB
        2. scenemodifier.cpp
          16 kB
        3. scenemodifier.h
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            anders_porsbo Anders Porsbo
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes