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

The right-click menu in the QGraphicsView cannot select immovable items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • Widgets: GraphicsView
    • None

    Description

      The QGraphicsItem:: mousePressEvent function will ignore the event if the item is not movable. In the QGraphicsScenePrivate:: mousePressEventHandler, all ignore event items will be deleted, causing the selection status of multiple selected items to be cleared, and the right-click menu cannot select non movable items.
       
      else if (!(flags() & ItemIsMovable))

      {     event->ignore(); }

       
      The scene will clear the selected status of all immovable items
       
       

      Attachments

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

        Activity

          People

            bibr Andreas Aardal Hanssen
            heafox 剑波 胡
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes