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. Mouseevent remembers last clicked point
Qt 6.11 is out! See what's new in the release blog

Mouseevent remembers last clicked point

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 535 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    BobMarly
    wrote on last edited by
    #1

    What happens is when i click the first time, a line is already drawn from the Qt origin to the point where i first click my mouse, then drawing goes fine, but releasing the click and starting at a different point to draw again, a line is drawn from where i released the mouse button to where i press it again. I think that this and the line always coming from the origin are of the same type. What can i do so it only draws when the mouse is clicked and when i release the mouse button, the last point is not used as first point in my new drawing?

    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