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. Proper way to snap widget to mouse and ensure fluent movement.
Forum Updated to NodeBB v4.3 + New Features

Proper way to snap widget to mouse and ensure fluent movement.

Scheduled Pinned Locked Moved Unsolved General and Desktop
movingwidgetmouse
1 Posts 1 Posters 693 Views
  • 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.
  • F Offline
    F Offline
    frogi16
    wrote on last edited by frogi16
    #1

    I want to allow users to modify position of widgets on screen. It would be nice to have some kind of preview how it looks so currently in mouseMoveEvent window calls move function of the suitable widget. This solution has some flaws:

    1. Movement seems delayed when mouse moves quickly.
    2. My test object (green rectangle) looks like it was getting smaller when it moves. Probably some drawing error which I can't really understand. I suspect that may have something with refresh rate because when I try to print screen and document this behaviour I see rectangle with normal size.

    So, what approach should I take? Thanks for the answers.

    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