Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Getting 2nd point on QWidget after a mousePress.
jkwok678 last edited by
I have a mouse press event, which I have implemented so far. But want to know how to make it so that I can find where the user has clicked and dragged the cursor to. For example, to draw a line from point to point. I'm currently working on a Custom QWidget.
Pl45m4 last edited by
There is no "2nd point". You have to use the
mouseReleaseposition or the current mouse position after clicking.