Qt Code:
  1. fluxoCaixaGraphicsView::fluxoCaixaGraphicsView(QWidget *parent) :
  2. QGraphicsView(parent)
  3. {
  4. QGraphicsScene *cenario = new QGraphicsScene(this);
  5. }
To copy to clipboard, switch view to plain text mode 
you just declared a local variable named "cenario", it is not the same as your "cenario" in the header file
change this to
Qt Code:
  1. fluxoCaixaGraphicsView::fluxoCaixaGraphicsView(QWidget *parent) :
  2. QGraphicsView(parent)
  3. {
  4. this->cenario = new QGraphicsScene(this);
  5. }
To copy to clipboard, switch view to plain text mode 
btw. you should call base class implementation of the reimplemented event handlers.