Questions tagged [qgraphicsitemgroup]

5 questions
1
vote
1 answer

Make children of QGraphicsItemGroup unselectable

In my app I am using the Graphics View framework and I am creating a lot of QGraphicsItemGroup. For example one group represents a text frame with some squares to resize the frame and another is a group of points representing a brush stroke. I am…
1
vote
1 answer

Where is QGraphicsItemGroup's translation dispatched after it had been destroyed?

I have QGraphicsItem objects in a scene that I move jointly using a QGraphicsItemGroup, as per this answer. While the group is alive, it keeps its own transforms. Now once it is destroyed, these transforms cease to exist, and must be dispatched. My…
user209974
  • 1,737
  • 2
  • 15
  • 31
1
vote
1 answer

How to propagate mouse events to a QGraphicsItem in a QGraphicsItemGroup?

I want to catch mouse events for some QGraphicsItem. When the item is added directly to a QGraphicsScene, everything works as expected: when using option 1 below, the console prints "foo" when the user clicks within the rectangle. However, if the…
user209974
  • 1,737
  • 2
  • 15
  • 31
0
votes
1 answer

How to propagate QGraphicsItemGroup mouse events to child elements?

Is it possible to propagate QGraphicsItemGroup mouse events to child added items? setHandlesChildEvents(false) is deprecated and I don't want to use it. I tried this, but it didn't work: class MoveItemBase : public QObject, public…
Max
  • 817
  • 1
  • 10
  • 29
0
votes
0 answers

QGraphicsItemGroup: Hiding multiple items with checkbox did not work

I want to show a wide range of the same graphic items into one scene. All items are lines. Some lines are at the same horizontal position. To manage this I create organizeItemGroups. The universal function sorted the data of an item into a…
taathy
  • 155
  • 1
  • 1
  • 9