Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Draw an arc with QPainter

Draw an arc with QPainter

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 6.2k Views 1 Watching
  • 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 Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    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
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        Merinas
        wrote on last edited by
        #3

        Thanks I'ill try this way.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved