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. QT USB support
Qt 6.11 is out! See what's new in the release blog

QT USB support

Scheduled Pinned Locked Moved Unsolved General and Desktop
usb qt
5 Posts 4 Posters 1.7k 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.
  • A Offline
    A Offline
    astoffregen
    wrote on last edited by
    #1

    I am looking for a simple way in qt to determine if a usb device is in use (stick is inserted, stick is pulled).

    Starting point is visual studio, qt 6.4.3 and qt vs tools.

    Target system is windows and linux.

    What i found so far is an old git project, QDeviceWatcher.

    But is there any possibility to solve this with QT on-board tools (QSerialPort or similar)?

    Christian EhrlicherC JoeCFDJ 2 Replies Last reply
    0
    • A astoffregen

      I am looking for a simple way in qt to determine if a usb device is in use (stick is inserted, stick is pulled).

      Starting point is visual studio, qt 6.4.3 and qt vs tools.

      Target system is windows and linux.

      What i found so far is an old git project, QDeviceWatcher.

      But is there any possibility to solve this with QT on-board tools (QSerialPort or similar)?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @astoffregen said in QT USB support:

      if a usb device is in use

      on-board tools (QSerialPort or similar)?

      So what usb device to you want to watch? A disk or a serial device?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      0
      • A astoffregen

        I am looking for a simple way in qt to determine if a usb device is in use (stick is inserted, stick is pulled).

        Starting point is visual studio, qt 6.4.3 and qt vs tools.

        Target system is windows and linux.

        What i found so far is an old git project, QDeviceWatcher.

        But is there any possibility to solve this with QT on-board tools (QSerialPort or similar)?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @astoffregen said in QT USB support:

        if a usb device is in use

        https://forum.qt.io/topic/135835/qt-desktop-usb-device-pluged-unpluged-detection-based-on-pid-vid/6

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @astoffregen said in QT USB support:

          if a usb device is in use

          on-board tools (QSerialPort or similar)?

          So what usb device to you want to watch? A disk or a serial device?

          A Offline
          A Offline
          astoffregen
          wrote on last edited by
          #4

          @Christian-Ehrlicher An usb stick

          SGaistS 1 Reply Last reply
          0
          • A astoffregen

            @Christian-Ehrlicher An usb stick

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            @astoffregen said in QT USB support:

            @Christian-Ehrlicher An usb stick

            This likely means a storage device but a USB stick can be:

            • Storage
            • Bluetooth dongle
            • WiFi dongle
            • Serial port
              etc.

            Depending on your exact needs, KDE's Solid framework might be of interest.

            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
            1

            • Login

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