nietige lijn:: paintEvent (QPaintEvent *c)
{
//lines
De lijn van QPainter (dit);
line.setRenderHint (QPainter:: Waar Antialiasing,);
line.setPen (QPen (Qt:: zwarte, 2, Qt:: SolidLine, Qt:: RoundCap, Qt:: MiterJoin));
line.setBrush (QBrush (Qt:: zwarte, Qt:: SolidPattern));
line.drawLine (50.50.50.200); // Y as
line.drawLine (50.200.250.200); // x as
// rechthoek
int. a [5] = {20.60.120.30.200}; //length = a []
int. x= 50.0 ;
int. y= 200;
int. inc = 200/5;
voor (int. i=0; i<5>
|