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

Leave one QGraphicsItem when entering to overalpping other

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.5.3
    • Widgets: GraphicsView
    • None

    Description

      When cursor goes from overlapped item to overlapping - now only hoverEnterEvent() for overlapping item is called. Application and Qt thing cursor still is over overlapped item. But in some applications there is strongly needed redraw or recalculate overlapped item in any way. Simplest example is - remove highlight from overlapped item. Now for this simple task it's needed implement code to find which one item should be reprocessed when cursor enters from one item to another.

      Suggestion: implement this code in core Qt and allow switch this code on or off by new flag QGraphicsItem::CursorHoverMonopoly. If this flag is off then hoverEnterEvent() and hoverLeaveEvent() work like they do now. If on then when cursor goes to overlapping item then first hoverLeaveEvent() for overlapped is called and only after it hoverEnterEvent() for overlapping is called.

      Attachments

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

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            gourmand Serge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes