Results 1 to 2 of 2

Thread: Detect USB-device

  1. #1
    Join Date
    Jun 2018
    Posts
    31
    Thanks
    8
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Detect USB-device

    How can I detect a USB-device (serial port) in qt? This device is a data acquisition card. Can I use QSerialPort to detect this device?
    Thanks for help me.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Detect USB-device

    Quote Originally Posted by Eduardo Huerta View Post
    Can I use QSerialPort to detect this device?
    QSerialPortInfo::availablePorts() can be used to list the serial ports detected on the system. Whether it will detect a particular USB-serial adapter will probably require an experiment.

Similar Threads

  1. Replies: 0
    Last Post: 1st February 2016, 00:31
  2. Replies: 4
    Last Post: 24th July 2012, 11:31
  3. Is there any way to detect USB state?
    By Kode.Cooper in forum Qt Programming
    Replies: 6
    Last Post: 15th December 2009, 02:39
  4. Detect which OS?
    By December in forum Qt Programming
    Replies: 6
    Last Post: 25th May 2007, 00:01
  5. How to detect new line?
    By whoops.slo in forum Newbie
    Replies: 6
    Last Post: 6th January 2006, 18:02

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.