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 detect if a mouse is connected to the device or not?
Forum Updated to NodeBB v4.3 + New Features

How to detect if a mouse is connected to the device or not?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 234 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.
  • S Offline
    S Offline
    samarthraj11
    wrote on last edited by samarthraj11
    #1

    I'm a SoK'22 contributor. My activity aims to teach the difference between left and right click. So this activity should only be visible to the devices which have a mouse attached to them.
    And invible to other devices such as mobile phones.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If memory serves well SoK is for summer of KDE, hence you could use their Solid framework to list available devices and see if there's a mouse connected. The fact that your application runs in a phone or tablet does not mean that there might not be a mouse connected at some point.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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