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.
Qt Code:
  1. void drawShape(QPainter* p)
  2. {
  3. p.rotate(45);
  4. p.drawRect(x(), y(), width(), height() ); // or something similiar, I forget
  5. p.rotate(-45); // as suggested in documentation
  6. }
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.