Using PeakCan with QCanBus
I am using Qt version 5.8. I am trying to use the QCanBus framework with PeakCan USB and PCIE devices connected to my PC, like here: http://doc.qt.io/qt-5/qtserialbus-peakcan-overview.html
The problem is I cannot find any device at this line:
QCanBusDevice *device = QCanBus::instance()->createDevice( QStringLiteral("peakcan"), QStringLiteral("usb0"));
I tried several usb 0, 1, 2 etc same as pcie0, 1.... Is there a way using this framework to figure out which device is connected? The devices work properly with Pcan framework in C# for a long time. I would appreciate all help!
In case anyone faces this issue- I forgot to place the PCANBasic.dll file next to the executable.