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. Qt Android, how can I get MotionEvent.getToolType() equivalent ?
Forum Updated to NodeBB v4.3 + New Features

Qt Android, how can I get MotionEvent.getToolType() equivalent ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 122 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.
  • delamorD Offline
    delamorD Offline
    delamor
    wrote on last edited by
    #1

    I have a whiteboard that's a component extending from QQuickItem, as it's in use in some hardware devices I need to detect when the tool being used is an eraser, a stylus or the finger.

    In Android in java that's as easy as using the method getToolType() from the MotionEvent received by onTouchEvent(), in Qt I am struggling with the events I receive from QQuickItem at:

    void touchEvent(QTouchEvent *event) override;
    bool event(QEvent *event) override;
    

    But I am not seeing any way to get the tool type information equivalent to Android native java implementation.

    Anyone could point me in the right direction ? Thanks in advance.

    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