Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Detect my current mouse point whether on my line set

    General and Desktop
    1
    1
    189
    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.
    • zenghsing
      zenghsing last edited by

      In C#, I could use Region with GraphicsPath to detect my mouse position if contained on my line set by USING "Region.IsVisible Method (Point)".

      In Qt, I try to use QPainterPath to generate my line set. But I found QRegion CAN'T contain my QPainterPath. Fortunately, I found QPainterPath has contains method with point and I try it. But it failed~~~I try it from my code and the Qt's example "tool tips example".

      In my opinion, I prefer find a method from Qt to replace the Region with GraphicsPath function. Is it possible?

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