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

Application crashes with QGraphicsView + setAcceptHover

    XMLWordPrintable

Details

    Description

      Hello!

      I think I discovered a bug.

      What I'm doing:
      I add a custom QGraphicsItem subclass to the scene, which does setAcceptHover(true);

      In the hoverMove event, I add another QGraphicsView to the scene.
      In the hoverLeave event, I remove it again.

      If I don't set setAcceptHover(false) on the item I add in hoverMove, the app will crash as soon as the mouse cursor hovers over the new item.

      I attached a simple test project.

      Attachments

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

        Activity

          People

            lscunha Leonardo Sobral Cunha (Inactive)
            pweiskircher Patrik Weiskircher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes