2 Replies Latest reply on Feb 14, 2017 3:49 AM by capital.javadhabibi_2093971

    Qt demo app (C++) that talks to a USB device

    kumr

      If any of you folks need a demo app using Qt that does USB transfers over a device, you can use the one attached to this post.

         

       

         

      This project is compiled with MinGW and so CyAPI was also recompiled accordingly. The source project for that is in the CyAPI_lib_cpp folder and a simple makefile is included with that (you may need to modify that to make it work on your PC).

      The Qt app itself is very simple -- it lists out all devices attached to cyusb3.sys and then enumerates the endpoints in a ComboBox. When you then click the "transfer data" button, it reads/writes 1 packet from/to the device.

         

       

         

      Note that this is a very crude demo project. It's probably has bugs and is not good for production use as-is.