Results 1 to 3 of 3

Thread: Qt applications and USB

  1. #1
    Join Date
    Mar 2011
    Posts
    5
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt applications and USB

    I'm relatively new to Qt and I've been hoping to write an application that is cross-platform, but uses USB to communicate to a device. I'm curious how this might work in Qt. Does Qt have a means of talking to USB (hearing plug/unplug events, communicatoin, etc.) or do I need to solve that problem for each platform?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt applications and USB

    Qt itself does not support USB, so you will have to solve that problem on each platform.

    However, if the USB communication is something like a virtual serial port which you have drivers for, then Qt can told to your USB device using a serial port class (such as Qextserialport, QSerialPort, etc). This is quite common so hopefully it does.

  3. #3
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt applications and USB

    What kind of USB device? USB/Serial converter or what?
    If the USB / Serial - using the fact that advised above or QSerialDevice (http://qt-apps.org/content/show.php?content=112039).
    If another type of USB device - the would probably "libusb".

Similar Threads

  1. Plugins for applications
    By MTK358 in forum Qt Programming
    Replies: 3
    Last Post: 5th November 2010, 02:21
  2. Benchmarking applications
    By aegis in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2007, 13:49
  3. Networking between applications
    By croland in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2007, 11:35
  4. Deploying QT applications
    By SteM in forum Installation and Deployment
    Replies: 3
    Last Post: 6th June 2007, 11:08

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.