Hello, All !

I want to draw polygon on QtCanvasView. I make
Qt Code:
  1. QtCanvasView *view;
  2. QtCanvasPolygon scrPol (view->canvas());
  3. scrPol.setPoints (scrPts);
  4. QPen selPen (Qt::red);
  5. scrPol.setPen (selPen);
  6.  
  7. QBrush selBrush (Qt::red, Qt::DiagCrossPattern);
  8. scrPol.setBrush (selBrush);
  9. view->repaint ();
To copy to clipboard, switch view to plain text mode 
But my polygon doesn't paint, I check coordinates of vertexes, all are correct.

Thanks in advance.