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

xcb and xlib platform plugins: Implement support for more buttons on "mouse" devices (up to 31 buttons).

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • None
    • Qt 5.0.0 For this task, the environment is Linux with X11, using the xlib or xcb platform plugins. A "mouse" pointer device, with more 5 non-wheel buttons, than 9 buttons, is the hardware requirement for seeing benefit from these changes.

    • Ie18fca3b9c86d0b6abbf2103a4f8582e6ce83e7d

    Description

      Qt::MouseButton (and the corresponding flags) are expanded into a 32-bit field, supporting name/value bits for up to 31 buttons. Following this prerequisite namespace change, the plugins are enhanced to translate high-numbered buttons into the new Qt::MouseButton bit fields. And finally, a one-line change is made in qguiapplication.cpp, allowing button numbers above "XButton2" (AKA Button #9, AKA the "Forward" Button) to pass through for higher-level processing.

      This code is all done, and tested with a widget-based test program. Other plugins (e.g., wayland) must be enhanced in subsequent tasks.

      Attachments

        Activity

          People

            shkearns Shane Kearns
            rickst29 Richard Stockton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: