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
Forum Update on Monday, May 27th 2025

QT USB support

Scheduled Pinned Locked Moved Unsolved General and Desktop
usb qt
5 Posts 4 Posters 900 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
    astoffregen
    wrote on 5 Apr 2023, 15:26 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)?

    C J 2 Replies Last reply 5 Apr 2023, 15:52
    0
    • A astoffregen
      5 Apr 2023, 15:26

      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)?

      C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 5 Apr 2023, 15:52 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 5 Apr 2023, 16:38
      0
      • A astoffregen
        5 Apr 2023, 15:26

        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)?

        J Offline
        J Offline
        JoeCFD
        wrote on 5 Apr 2023, 15:55 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
        • C Christian Ehrlicher
          5 Apr 2023, 15:52

          @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 5 Apr 2023, 16:38 last edited by
          #4

          @Christian-Ehrlicher An usb stick

          S 1 Reply Last reply 5 Apr 2023, 18:42
          0
          • A astoffregen
            5 Apr 2023, 16:38

            @Christian-Ehrlicher An usb stick

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 5 Apr 2023, 18:42 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

            4/5

            5 Apr 2023, 16:38

            • Login

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