YuriyRusinov
9th August 2007, 08:00
Hello, All !
I want to draw polygon on QtCanvasView. I make
QtCanvasView *view;
QtCanvasPolygon scrPol (view->canvas());
scrPol.setPoints (scrPts);
QPen selPen (Qt::red);
scrPol.setPen (selPen);
QBrush selBrush (Qt::red, Qt::DiagCrossPattern);
scrPol.setBrush (selBrush);
view->repaint ();
But my polygon doesn't paint, I check coordinates of vertexes, all are correct.
Thanks in advance.
I want to draw polygon on QtCanvasView. I make
QtCanvasView *view;
QtCanvasPolygon scrPol (view->canvas());
scrPol.setPoints (scrPts);
QPen selPen (Qt::red);
scrPol.setPen (selPen);
QBrush selBrush (Qt::red, Qt::DiagCrossPattern);
scrPol.setBrush (selBrush);
view->repaint ();
But my polygon doesn't paint, I check coordinates of vertexes, all are correct.
Thanks in advance.