Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Draw an arc with QPainter

    General and Desktop
    2
    3
    5801
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Merinas last edited by

      Hi,
      I'm currently trying to draw something like that with QPainter
      !http://www.hostingpics.net/thumbs/54/62/95/mini_546295arc.png(arc)!
      But I only manage to draw a pie.

      Did someone now how can i do ?
      Thanks

      1 Reply Last reply Reply Quote 0
      • P
        p-himik last edited by

        Why don't you use sequential calls of "QPainter::drawArc":http://doc.qt.nokia.com/4.7/qpainter.html#drawArc and "QPainter::drawLine":http://doc.qt.nokia.com/4.7/qpainter.html#drawLine ?
        Or maybe a call of "QPainter::drawPath":http://doc.qt.nokia.com/4.7/qpainter.html#drawPath .

        1 Reply Last reply Reply Quote 0
        • M
          Merinas last edited by

          Thanks I'ill try this way.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post