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

QtQuick3D View3D clicking does not work when offset in window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.2.5, 6.4.0 Beta2
    • Quick: 3D
    • None
    • Windows, Linux, Android
    • All

    Description

      Clicking on 2D items (e.g., buttons) placed in a View3D scene does not work correctly when the View3D has an offset in its application window.

      If the View3d does not originate in (0, 0) of its application window, the click event only works for the top part of the button; the bottom half, proportional to the View3D's offset against the window, appears not to register the release event. For example, if the View3D's offset is 40px against the window, the bottom 40px of the buttons won't work.

      In some cases, the click is registered but only if there was no mouse movement between the press and release events.

      Notes:

      When the offset is in place, the onReleased() event is not received for the bottom 40px.

      Workaround:

      Use anchors.fill: parent on the View3d, and overlay any other 2D items (e.g., header) on top of it

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              avdaga Avdo Hanjalic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes