Results 1 to 2 of 2

Thread: draw a polyline

  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default draw a polyline

    I'm trying to print a polyline (connect two points with a half squared line) calling QCanvasLine::SetPoints(XXX) two consecutive times, but It only shows the line of the second function call. I can not use drawline, because I dont have access to QPainter. Anyideas how to do that?

    Cheers,

    Ben

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: draw a polyline

    Can you show the actual code? QCanvasLine is part of Qt3 and it seems you're using Qt4...

Similar Threads

  1. Replies: 2
    Last Post: 21st May 2007, 21:12
  2. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 12:06
  3. Howto draw stuff
    By Morea in forum Newbie
    Replies: 16
    Last Post: 7th April 2006, 12:05
  4. Draw a rectangle alternating two colors with qPainter
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 24th January 2006, 23:12
  5. Drawing over content widgets? (overlay)
    By sertrem in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2006, 22:18

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.