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. Detect my current mouse point whether on my line set

Detect my current mouse point whether on my line set

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 303 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.
  • zenghsingZ Offline
    zenghsingZ Offline
    zenghsing
    wrote on last edited by
    #1

    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
    0

    • Login

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