Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Come intercettare eventi USB/COM

Come intercettare eventi USB/COM

Scheduled Pinned Locked Moved Unsolved Italian
3 Posts 3 Posters 819 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
    alex2000
    wrote on last edited by
    #1

    Salve, ho la necessità di aggiornare la lista delle porte seriali quando il mio programma è in esecuzione.
    Esiste un evento che mi segnali l'inserimento/rimozione di un dispositivo seriale USB?
    Grazie

    aha_1980A 1 Reply Last reply
    0
    • A alex2000

      Salve, ho la necessità di aggiornare la lista delle porte seriali quando il mio programma è in esecuzione.
      Esiste un evento che mi segnali l'inserimento/rimozione di un dispositivo seriale USB?
      Grazie

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @alex2000,

      there is no event as far as I know, but you can call http://doc.qt.io/qt-5/qserialportinfo.html#availablePorts with a timer e.g. every 5 seconds.

      Regards.

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by VRonin
        #3

        Non esiste un evento in Qt ma puoi usare libusb come descritto qui: http://www.cs.unm.edu/~hjelmn/libusb_hotplug_api/hotplug.html

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1

        • Login

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