CodePudding user response:
Record the coordinates of the line, judge whether the coordinates of the mouse moves in mouseevent falls within the scope of the coordinates of online and click the left mouse button,However, in order to improve the user experience, you can't directly corresponding to the coordinates of the scope, is too narrow a mouse is very difficult to it, you need to broaden the line the coordinates of the range, such as the breadth of 2 pixel,
CodePudding user response:
Record the coordinates, or need not QPainterCodePudding user response:
Don't use Qpainter with what ah?CodePudding user response: