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. how does Qt determine a dockwidget is ready to dock
Qt 6.11 is out! See what's new in the release blog

how does Qt determine a dockwidget is ready to dock

Scheduled Pinned Locked Moved General and Desktop
qdockwidget
2 Posts 2 Posters 808 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.
  • ravasR Offline
    ravasR Offline
    ravas
    wrote on last edited by
    #1

    I'm wondering how the algorithm for docking works.
    Is it based on cursor position or an edge of the dockwidget?

    Joel BodenmannJ 1 Reply Last reply
    0
    • ravasR ravas

      I'm wondering how the algorithm for docking works.
      Is it based on cursor position or an edge of the dockwidget?

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by Joel Bodenmann
      #2

      @ravas As the "docking animation" only shows up as soon as the mouse cursor (that currently drags a dockable widget) is inside the dockable area I assume that it is based on the cursor position and not the edge of the dockable widget.

      Edit: Just figured that I might have given some wrong information. It looks like it just goes for the nearest dockable area when the dockable widget that is currently being dragged around is within a certain distance.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      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