I am trying to draw some points of my image and I do not know why this does not work. I have defined QImage and I want to change some points.
QImage *cou= new QImage(height,largeur,QImage::Format_Mono); cou->fill(1); QPainter *fig=new QPainter (cou); for (i=0;i<size_;i++) { fig-> drawPoint(floor(propa[i]),nbmax[i]); }
When I execute the code, I get
QPainter::begin: Paint device returned engine == 0, type: 3
and in the following lines:
QPainter::drawPoints: Painter not active
source share