# How to draw line advanced

• I want to draw sinusoidal line shape triangle, square shape, triangular shape with rounded top, line consists of several parallel lines which some are thicker than cetain other

I want to use a property for it. When selects a value from that property, line is transformed
exempl:

_ _
| |__| |

# ////@_ _

@

How will I do?

• Hi Sam

I'm afraid I don't understand your question. Perhaps you could provide us with an image, sketch or diagram to help with the explanation?

• I want to draw those type of line like below:

• The image is not visible. Maybe some security settings on your google account/web albums.

• This one has the same problems, the access is forbidden.
Pleasre use a different hoster or use a public gallery.

• Gerolf do you have an URL for public gallery, where I can put my image??

What I want is:
to draw a line in big wave and small wave, large niche and small niche.
I try to use cubicTo but it does not work well. Maybe it's due to my checkpoint(controle points).

This is my code:
@QPointF c1, c2,tmp;
if(p1.y() <= p2.y())
{
if(p1.x() <= p2.x())
{
int j = p1.y();
int i=p1.x();
int step = 30;
while(i < p2.x())
{
c1.setX((i+step)/2+step);
c1.setY((j+step)/2);
c2.setX((i+step)/2+step);
c2.setY((j+step)/2);
tmp.setX(i+step);
tmp.setY(j+step);
aio_path.cubicTo(c1,c2,tmp);
aio_path.moveTo(tmp);
j+=step;
i+=step;
}
c1.setX((i+step)/2+step);
c1.setY((j+step)/2);
c2.setX((i+step)/2+step);
c2.setY((j+step)/2);
tmp.setX(i+step);
tmp.setY(j+step);
aio_path.cubicTo(c1,c2,p2);
}
else
{

``````    }
}@``````

• Personally, I use the public folder of my dropbox account, but you could also use a service like imagebin or tinypic or flickr to put your image in a public place.

• My image is here. At the bottom