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 649 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 1 Sept 2018, 19:17 last edited by frogi16 9 Feb 2018, 07:19
    #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

    1/1

    1 Sept 2018, 19:17

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved