Results 1 to 2 of 2

Thread: Draw Square using moveTo and lineTo function

  1. #1
    Join Date
    Dec 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Draw Square using moveTo and lineTo function

    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 ..........

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Draw Square using moveTo and lineTo function

    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
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. QPainterPath and moveTo problem
    By allting in forum Qt Programming
    Replies: 3
    Last Post: 15th May 2010, 16:02
  2. Moveto perticular leine in QTextDocument
    By bismitapadhy in forum Qt Programming
    Replies: 6
    Last Post: 10th August 2009, 08:12
  3. painter's drawPie() function how to draw few sensible PIEZ..
    By salmanmanekia in forum Qt Programming
    Replies: 15
    Last Post: 31st August 2008, 16:52
  4. Square function
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 12th February 2007, 17:51
  5. Replies: 8
    Last Post: 2nd August 2006, 16:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.