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
Forum Updated to NodeBB v4.3 + New Features

Draw an arc with QPainter

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 6.0k 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 10 Oct 2011, 08:15 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 10 Oct 2011, 08:18 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 11 Oct 2011, 07:55 last edited by
        #3

        Thanks I'ill try this way.

        1 Reply Last reply
        0

        1/3

        10 Oct 2011, 08:15

        • Login

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