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 create a thread in Qt C++ to monitor USB events.

How to create a thread in Qt C++ to monitor USB events.

Scheduled Pinned Locked Moved Unsolved General and Desktop
usb qtc++ threadmonitoring
2 Posts 2 Posters 580 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.
  • A Offline
    A Offline
    aftershocker1
    wrote on 4 Aug 2021, 13:30 last edited by
    #1

    I am doing an internship this summer and have hit a bit of a standstill. I am creating a desktop application that monitors information from a PCB. The PCB is connected via USB and I need to monitor event information that comes from it. I think the bets way to do this would be to create a thread to monitor the events then pass the information from this into the main program(maybe using QSemaphores?).

    Any guidance would be great as I am not really sure if this is the best way to do it or how best to create a thread that would monitor the events in Qt.

    I should add I am using hidapi.dll.

    Thanks in advance!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JoeCFD
      wrote on 4 Aug 2021, 16:30 last edited by
      #2

      https://github.com/nwoki/usb-notifier

      1 Reply Last reply
      3

      2/2

      4 Aug 2021, 16:30

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved