Important: Please read the Qt Code of Conduct -

Getting 2nd point on QWidget after a mousePress.

  • Hi,

    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.


  • @jkwok678

    There is no "2nd point". You have to use the mouseRelease position or the current mouse position after clicking.

Log in to reply