Hi, i am trying draw a line inside my QGraphicsView. The output is showing as Qpainter::begin: paint device returned engine == 0 type 1.
And my code is
Qt Code:
  1. QPainter painter(ui->myGraphicsView);
  2. QLineF line(mypoint, a_point);
  3. painter.drawLine(line);
  4. mypoint = a_point;
  5. this->repaint();
To copy to clipboard, switch view to plain text mode