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

Propagation of MousePressEvents to QGraphicsItems very inaccurate at top and left side of Items.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.7.1
    • Widgets: GraphicsView
    • None
    • Windows Vista

    Description

      MousePressEvent is called for QGraphicsItems (veryfied for QGraphicsPolygonItem and QGraphicsEllipseItem) even if the user clicks to the top or to the left of the item.
      This is reproducable in the Elastic Nodes example: Zoom in until one node covers a large area of the screen. The node can be activated by clicking significantly to the left or top of the node. However on the bottom right side, selection is pixel-accurate.
      This problem also applies to QGraphicsPolygonItem. If Items are small and the zoom level is high, one item can entirely block another item from being selected, if they are placed next to each other.

      Additional info as per request: Example program that shows the issue as attachment

      Attachments

        1. Bug in 4.7.1 - Polyline.png
          Bug in 4.7.1 - Polyline.png
          10 kB
        2. Bug in 4.8.7 - 40000 Chip demo.png
          Bug in 4.8.7 - 40000 Chip demo.png
          78 kB
        3. main.cpp
          1 kB
        4. qgraphicsscene-4.7.patch
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            bernhard schmitz Bernhard Schmitz
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes