Results 1 to 2 of 2

Thread: computing intersections of two shapes

  1. #1
    Join Date
    Aug 2009
    Posts
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default computing intersections of two shapes

    Hello,

    are there some methods to compute points of intersection of two shapes (lines, rectangles ... ) in Qt? .. The ony one I have found is QPainterPath::intersected(), which does the job only for filled shapes and therefore it's not good for me ..
    Thanks a lot

  2. #2
    Join Date
    Dec 2007
    Posts
    627
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: computing intersections of two shapes

    Yes,
    Qt Code:
    1. QRect::intersected()
    To copy to clipboard, switch view to plain text mode 
    And for QPainterPath and QRegion also.

Similar Threads

  1. Drawing shapes
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 31st October 2008, 09:19

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.