ir210
16th January 2006, 04:04
Hi,
I have problem with QCanvas since the beginning of my development time with qt. My newest problem is with QPainter inside QCanvasPolygonalItem's subclass.
Here is my code.
void drawShape(QPainter* p)
{
p.rotate(45);
p.drawRect(x(), y(), width(), height() ); // or something similiar, I forget
p.rotate(-45); // as suggested in documentation
}
I found it flickering at runtime. anyone could help me with this problem? since flickering is my only problem with QCanvas.
I have problem with QCanvas since the beginning of my development time with qt. My newest problem is with QPainter inside QCanvasPolygonalItem's subclass.
Here is my code.
void drawShape(QPainter* p)
{
p.rotate(45);
p.drawRect(x(), y(), width(), height() ); // or something similiar, I forget
p.rotate(-45); // as suggested in documentation
}
I found it flickering at runtime. anyone could help me with this problem? since flickering is my only problem with QCanvas.