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. how i can create a triangle in class QPainterPath path?

how i can create a triangle in class QPainterPath path?

Scheduled Pinned Locked Moved General and Desktop
triangleqpainterpath
3 Posts 2 Posters 1.3k Views
  • 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.
  • S Offline
    S Offline
    stackprogramer
    wrote on 13 Feb 2016, 16:55 last edited by stackprogramer
    #1

    i can create a rectangle in class QPainterPath by using method addrect;
    my question is it has not addtriangle,how i can create triangle with it??

    thanks for reply.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 13 Feb 2016, 18:07 last edited by
      #2

      Hi! You can use void QPainterPath::addPolygon(const QPolygonF &polygon).

      S 1 Reply Last reply 14 Feb 2016, 06:52
      1
      • ? A Former User
        13 Feb 2016, 18:07

        Hi! You can use void QPainterPath::addPolygon(const QPolygonF &polygon).

        S Offline
        S Offline
        stackprogramer
        wrote on 14 Feb 2016, 06:52 last edited by stackprogramer
        #3

        @Wieland ,nice .......it works ,thanks for reply:)

        1 Reply Last reply
        0

        3/3

        14 Feb 2016, 06:52

        • Login

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