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

QGraphicsTextItem not editable when added through a group

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      Windows 7
      Python 3.7.9
      Pyside2 5.15.1

      Description

      I am trying to add multiple QGraphicsTextItem in a scene, grouped through a QGraphicsItemGroup.

      If I add the QGraphicsTextItem to the scene before the group (or without even adding the group), the text item is editable just as it should be.

      However, in the case where I add the QGraphicsTextItem through the QGraphicsItemGroup (adding the text item after that indicates that it is already in the scene, so it is indeed added), it cannot be edited.

      As in both scenario the item is added to the scene and is inside the group, I wonder why the inserting order affects whether it is editable or not - it should be editable in any case.

      I don't know if this is a PySide only issue or even an issue at all (maybe it is something I haven't understand correctly).

      Feel free to correct me or ask for more details. I have included a script showing the issue.

        Attachments

        1. test.cpp
          1 kB
        2. test.py
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            bibr Andreas Aardal Hanssen
            Reporter:
            kusefiru Jérémy Heyne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes