Results 1 to 3 of 3

Thread: QPainterPath or QPolygon centroid/center/origin - How to determine ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    4

    Default QPainterPath or QPolygon centroid/center/origin - How to determine ?

    I want to graphically depict the center point (center point of gravity) of a complex/non-symmetrical Polygon. There is no

    QPointF QPolygon::center()

    Finding the center of the boundingRect was easy, but wrong.

    Any code/idea ?
    Last edited by muenalan; 3rd December 2008 at 11:25.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.