Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50168

Clip mouse cursor position

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1, 5.6.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Debian stretch 4.2 kernel, Qt 5.6 head from the repository

      Description

      Hello,
      It'd be nice to have the ability to clip the mouse cursor to a certain area of the screen or window. I've needed this recently and I wasn't able to achieve it with the standard set of tools Qt provides. The problem really is that when one gets to the messages in Qt they're already processed by the window manager and there is no "good" way to reposition the mouse pointer without it jittering near the edges of the rectangle/window the pointer is supposed to be clipped to.Putting a virtual bool restrictMouse(bool grab) function in QPlatformWindow, should be enough to enable that functionality. And I'm attaching in the text file a very simple implementation for X11.

      Kind regards.

        Attachments

        Gerrit Reviews Web Panel

        Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your Jira administrators.

          Activity

            People

            • Assignee:
              sletta Gunnar Sletta
              Reporter:
              kshegunov Konstantin Shegunov
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews Side Panel

                Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerrit-reviews-side-panel'. Please contact your Jira administrators.