Hi, I'm trying to draw a rect in myGLWidget; it seems work; but I can see rect while I rotate the scene with mouseMove (and paintGL starts evey time I move mouse). Why this?
Qt Code:
  1. //paintGL
  2. painter->setPen(QPen(QColor(255,255,255),1,QPen::DotLine));
  3. painter->drawRect(10,10,50,50);
To copy to clipboard, switch view to plain text mode