Matthieu Riegler
Matthieu Riegler

Reputation: 55554

QGraphicsScene : get the QGraphicsItemGroup under the cursor

I'm having trouble getting a pointer of a QGraphicsItemGroup bellow my cursor. QGraphicsScene::ItemAt return one of the objects of the group but the not ItemGroup it self.

Any clue how to do it ?

Thx

Upvotes: 1

Views: 923

Answers (1)

Anthony
Anthony

Reputation: 8788

You can call QGraphicsItem::group() on the QGraphicsItem returned by QGraphicsScene::itemAt().

Upvotes: 4

Related Questions