PDA

View Full Version : Qpainter::begin: paint device returned engine == 0 type 1.



karthic
27th April 2012, 13:54
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


QPainter painter(ui->myGraphicsView);
QLineF line(mypoint, a_point);
painter.drawLine(line);
mypoint = a_point;
this->repaint();