Change QGraphicsObject to QObject the CardsGroup.