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. QDrag snaps back to origin on OS-X

QDrag snaps back to origin on OS-X

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 945 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.
  • W Offline
    W Offline
    wrosecrans
    wrote on last edited by
    #1

    I am doing a UI where you can drag tabs out of a window to tear off a new window. On Linux, it currently works as expected. On OS-X it does work, but there is an annoyance. I drag the tab out of the window, set a pixmap for the drag, and let go at some arbitrary spot. On linux, I then spawn a new window where the mouse is. On OS-X, when I release the mouse, the drag isn't on a target that accepts it, so I see the pixmap whip back to where the drag started, and then the new window opens. How do I squash the behavior of the drag "snapping back" to the start location on OS-X? It really is quite distracting. I have tried digging through the documentation, but I haven't found anything that seems promising so far.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Sounds like a little glitch. What version of Qt are you using on what version of OS X ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        10.8 / Qt 5.3 preview. I haven't tried building with other versions of Qt yet. If that's not expected behavior, I'll try building with 5.2 this week and see if it's a new/changed behavior in 5.3.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I would say it's not since you can e.g. drag a Safari tab out to create a new window from it without seeing that effect.

          If you can reproduce it with 5.2 you should go to the "bug report system":http://bugreports.qt-project.org and check whether it's something known. If not, please open a new report providing a minimal compilable example that shows the behavior.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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