Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to distinguish wacom tablet generated QMouseEvent from normal ones?

How to distinguish wacom tablet generated QMouseEvent from normal ones?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 610 Views 1 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.
  • L Offline
    L Offline
    liuyanghejerry
    wrote on last edited by
    #1

    Qt 5 has no tablet support on Windows, so I write some code to receive tablet events and convert to QTabletEvent.

    However, each of tablet events still converted into QMouseEvent in Qt internally. No tablet support just means tablet moves won't be QTabletEvent.

    This makes it difficult to write code that works with both normal mouse and wacom tablet, since all of them become QMouseEvent.

    Is there any way to distinguish them?

    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