Results 1 to 2 of 2

Thread: QPainterPath.arcTo

  1. #1
    Join Date
    Jul 2007
    Posts
    27
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QPainterPath.arcTo

    I'm trying to draw an arc like so:

    QPainterPath sixArc;

    sixArc.arcTo(QRectF(-200, -200, 400, 400), 18, -36);

    This works OK, except I don't want the straight line from the center of the circle to the starting point of my arc.

    How do I get rid of it, but leave the curved part of my arc intact?

    Suggestions, please.

    Thank You,

    Gordon E.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPainterPath.arcTo

    From Qt Assistant.. about arcTo() function, it says...
    Note that this function connects the starting point of the arc to the current position if they are not already connected. After the arc has been added, the current position is the last point in arc
    u can use moveTo() function to overlap current position and start point,,,, or something like that. Hope u get what i mean to say

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.