Important: Please read the Qt Code of Conduct -

Detect my current mouse point whether on my line set

  • 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?

Log in to reply