Can you give me please un exemple how i can call the method drawLines? i don't know what is QwtScaleMap ? also what do you want to say by segmentPen[]

Thank you in advance