Results 1 to 4 of 4

Thread: USB Device detection

  1. #1
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default USB Device detection

    Hi, i'm learning QT at the moment, I already programmed a lot of Java but now I want to try something new.
    I want a programm which starts waits until a usb device is plugged in and then delets all the data on the device.
    I found a lot of posts which should do the same but most of them are not working with a Win32 System or QT5 because lot of old functions are not available anymore in QT5.
    I hope somebody can help me and explain exactly what to do or load up a .zip with code that works.
    Thanks a lot

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: USB Device detection

    You can likel use Solid to detect the device
    https://inqlude.org/libraries/solid.html

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    d_stranz (27th August 2016)

  4. #3
    Join Date
    Aug 2016
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: USB Device detection

    Thanks for the quick answer but I claim that solid is only for Linux systems and i am working with Windows.

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: USB Device detection

    The documentation says "Linux, MacOSX and Windows": https://api.kde.org/frameworks/solid/html/index.html

    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 31st January 2016, 23:31
  2. HID USB device detection
    By A9am in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2014, 12:56
  3. Detection usb device connection/disconnection
    By binaural in forum Qt Programming
    Replies: 9
    Last Post: 18th September 2012, 10:59
  4. Edge-detection (maybe using QGL?)
    By mwgobetti in forum Newbie
    Replies: 6
    Last Post: 20th January 2012, 13:32
  5. USB device detection problem
    By yellowmat in forum Qt Programming
    Replies: 1
    Last Post: 19th August 2006, 12:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.