Results 1 to 20 of 47

Thread: Windows USB example

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Italy
    Posts
    5
    Thanks
    1
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Windows USB example

    This program is an example of how to use an USB device in Qt.
    It is limited only to the HID devices class (joystick, mouse, keyboard...)
    It uses the standard Microsoft HID driver. If you use another driver you must know how it works.
    It demonstrates how to:
    -recognize a device by VID&PID
    -read/write
    -attach/detach notification
    Two examples are provided:
    -first example reads the XY position of a joystick
    -second example sends a message to the device and waits for the answer.

    See comments in source for details.

    Licence: GPL.

    I hope that this program can be useful to someone.
    Attached Files Attached Files

  2. The following 4 users say thank you to gavagai for this useful post:

    ASUKA_521 (25th March 2012), baetaekwon (19th February 2013), caodungviet (28th April 2011), Gamer (12th October 2013)

Similar Threads

  1. Replies: 2
    Last Post: 6th September 2010, 15:22
  2. Replies: 3
    Last Post: 12th July 2010, 07:25
  3. Program runs on Windows 7, crashes on Windows XP
    By JovianGhost in forum General Programming
    Replies: 8
    Last Post: 7th June 2010, 01:55
  4. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 12:27
  5. Replies: 10
    Last Post: 25th February 2007, 01:23

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.