Can you please do me a favor ?
Can you try it with the following code ? It should draw red horizontal lines, right ?
[CODE]
void drawContents(QPainter *p, int cx, int cy, int cw, int ch)
{
//p->setClipRect(cx,cy,cw,ch);
// p->setClipping(true);
p->fillRect(0,0,600,300, Qt::white);
p->setPen(Qt::red);
for(int i = 0; i < 300; i+=25){
p->drawLine(0,i, 600, i);
}
}
[CODE]
Once you have the drawing, resize your browser( or any other window) and move it around this drawing.
Are the lines getting drawn as the new area is shown and the window is moved ?
Thanks a lot.




Reply With Quote


Bookmarks