Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    [SOLVED] Finding the centre of a QPainterPath and its vector of direction ?

    General and Desktop
    0
    2
    1559
    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.
    • ?
      Guest last edited by

      I need to add text to a curve, right in the centre of the curve, rotated to be aligned with the direction of the curve. I could find the vector by finding two points close to the middle of the curve and get their relative angle, but in the API I don't seem to find any methods to get points from the curve that are not points the curve is based on.

      Any ideas? 10x in advance!

      1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

        Ops, I obviously need to work on my focus skills, totally missed the pointAtPercent method for QPainterPath.

        Problem solved!

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