Results 1 to 2 of 2

Thread: Checking for intersect of QPainterPath OUTLINE?

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4

    Default Checking for intersect of QPainterPath OUTLINE?

    Is there any way to check for the intersection of a point and a QPainterPath. This is a very basic function that should be provided by Qt.

    The intesects() method says:

    "Also returns true if the current path contains or is contained by any part of p."

    I am creating a graphics editor and need to know if the mouse hovers ONLY OVER THE OUTLINE.

    GDI+ has this. It is called IsOutlineVisible.

    Also (bonus question!), is there a flatten() method available for QPainterPath which gives me the set of POINTS that make up the path, like in GDI+:

    http://msdn.microsoft.com/en-us/libr...h.flatten.aspx


    Any ideas?

  2. #2
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4

    Default Re: Checking for intersect of QPainterPath OUTLINE?

    Anyone have any ideas...?

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22

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.