How can I get the right tranformed Painter of my GraphicsView extended class ?
To draw a temporal item not added to the scene, I have to write :

Qt Code:
  1. A_Gview2D::paintEvent(QPaintEvent *event) {
  2. QPainter painter(this->viewport()); // this is the 'widget' `painter
  3.  
  4. QTransform AFT=QTransform(this->matrix());
  5. AFT.translate(w_temp_item->pos().x(),w_temp_item->pos().y() );
  6. painter.setTransform(AFT);
To copy to clipboard, switch view to plain text mode 
Is any other way to get the right painter ?
Any idea ? Thanks