camleroi
6th January 2014, 10:06
Hello,
I was wondering if there was a way to make the paint method of the QGraphicsItem ( virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) ) also paint all the children of the item ?
This would correspond to the behavior of the QGraphicsView::render method, but for the QGraphicsItem…
Thank you in advance for your answers !
I was wondering if there was a way to make the paint method of the QGraphicsItem ( virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) ) also paint all the children of the item ?
This would correspond to the behavior of the QGraphicsView::render method, but for the QGraphicsItem…
Thank you in advance for your answers !