Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtQuick with rotary encoder to navigate Menu and adjust Slider, SpinBox etc
Forum Updated to NodeBB v4.3 + New Features

QtQuick with rotary encoder to navigate Menu and adjust Slider, SpinBox etc

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 46 Views 2 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.
  • P Offline
    P Offline
    petero3
    wrote last edited by petero3
    #1

    Hi

    QtQuick with rotary encoder to navigate Menu and adjust Slider, SpinBox etc
    Which is the recommended/supported approach for this please?
    Which examples and/or docs cover this please?

    The multifunction display (MFD) has a touchscreen, several buttons and a rotary encoder.
    The button driver produces function key events.
    The rotary encoder driver produces mouse scroll wheel events.

    This is 80% working via workarounds, but we are going in circles searching for a way that is 100% supported by QtQuick/QML.

    The first issue is that QtQuick Menu, Slider, SpinBox etc support the scroll wheel, but only when the mouse pointer is over them... multifunction displays do not have a mouse pointer, only the rotary encoder/scroll wheel...

    A partial workaround is to try to convert QWheelEvent to QKeyEvent using installEventFilter/WheelListener/postEvent, but that introduces further issues:
    https://bugreports.qt.io/browse/QTBUG-136694

    Thank you

    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