PDA

View Full Version : Draw Square using moveTo and lineTo function



chirudi
2nd January 2013, 04:56
Hello Guys,

I have painterpath and using that i have to draw Square . and i am reading the data from the file for drawing . if the command is MoveTo then i have to draw red line and if commnad is LineTo then i have to draw Green line .

how to do this can anybody help me ..........

thanking you ..........

Santosh Reddy
2nd January 2013, 10:07
How are you creating the drawing file.

Do you use QPainterPath << operator (QDataStream) to save in to file? or Do you manually create the file