void linia:: paintEvent (QPaintEvent *c)
{
//lines
QPainter linia (to);
line.setRenderHint (QPainter:: Antialiasing, true);
line.setPen (QPen (Qt:: czerń, 2, Qt:: SolidLine, Qt:: RoundCap, Qt:: MiterJoin));
line.setBrush (QBrush (Qt:: czerń, Qt:: SolidPattern));
line.drawLine (50,50,50,200); // Y oś
line.drawLine (50,200,250,200); // x oś
// prostokąt
int a [5] = {20,60,120,30,200}; //length = a []
int x= 50.0 ;
int y= 200;
int inc = 200/5;
dla (int i=0; i<5>
|