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

Hover events are not triggered in a ~10px area at the bottom edge of QGraphicsRectItem after zooming in/out

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • None
    • macOS Sequoia 15.3.2
      Qt 6.8.2 (official build)
      Apple Clang 16.0.0
    • macOS

    Description

      After zooming in and out in a QGraphicsView scene, there is a ~10px area at the bottom edge of QGraphicsRectItemwhere hover events do not trigger. This issue occurs consistently when zooming but does not affect other edges of the QGraphicsRectItem.

      Steps to Reproduce:

      1. Build and run the provided minimal example.
      1. Move the cursor to the edges of the QGraphicsRectItem and observe the cursor change (initially works fine).
      1. Zoom in and out using the scroll wheel (without moving or resizing the window).
      1. Move the cursor to the bottom edge of the QGraphicsRectItem—you will notice that hover events no longer trigger in a ~10px area.

      Expected Behavior:
      Hover events should be triggered across the entire edge of the QGraphicsRectItem, regardless of zooming.

      Actual Behavior:
      A ~10px-wide strip at the bottom edge does not respond to hover events after zooming in and out.

       

      Additional Information:

      • A minimal example is attached to this issue.

      I would appreciate any insights on whether this is a macOS-specific issue or a broader Qt bug.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kevinhoang Kevin Hoang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes