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.
{
p.rotate(45);
p.drawRect(x(), y(), width(), height() ); // or something similiar, I forget
p.rotate(-45); // as suggested in documentation
}
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
}
To copy to clipboard, switch view to plain text mode
I found it flickering at runtime. anyone could help me with this problem? since flickering is my only problem with QCanvas.
Bookmarks