Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML stylus event handling.

QML stylus event handling.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 217 Views
  • 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.
  • J Offline
    J Offline
    JanS
    wrote on last edited by
    #1

    Hi,
    I'm creating a QML app for galaxy tab and i need to collect pressure data from stylus usage. I've been trying to use PointHandler:

        PointHandler {
            id: handler
        }
        Timer {
                interval: 100; running: true; repeat: true;
                onTriggered: { console.log(handler.point.pressure); }
            }
        }
    

    but the output is 0 or 1, nothing in between. Except when I'm using my finger, then app is just happy to feedback me with fraction pressure values.
    Qt Tablet Example (https://doc.qt.io/qt-5/qtwidgets-widgets-tablet-example.html) which uses Widgets, works just fine.

    I'm using Galaxy Tab S6 and QtQuick2.12.

    Thus come my questions: do PointHandler and HandlerPoint support stylus events? If not, Is there any other QML component that could get the job done?

    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