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. QPainter::drawArc: is there a similar function for QPainterPath?
Forum Updated to NodeBB v4.3 + New Features

QPainter::drawArc: is there a similar function for QPainterPath?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.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.
  • R Offline
    R Offline
    Rhadel
    wrote on last edited by
    #1

    !http://s24.postimg.org/5qk97l5gl/terminal.png(Terminal)!

    Hi,

    As you can see at image, I established a "complex" structure drawn with some arcs. Its maked ease with some calculus (2 arcs and 1 line for each one):

    @
    (blah blah)
    painter->drawArc(inner, initarc * 16, endarc * 16);
    (...)
    painter->drawLine(initPoint, endPoint);
    @

    Now, I would like brushing its area using QPainterPath. In order to make more easy this stuff, I ask: is there some way to reuse all the calculus maked for painter to create a QPainterPath and brush inner region?

    Something like: painter->drawArc(rectangle, angle1, angle2) = QPainterPath::drawArc(same parameters).

    I tryied with @QPainterPath::arcTo @ and @QPainterPath::arcMoveTo @ and didn't work.

    Thank you.

    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