There is a return missing in your getDeviceInfoList(), when the if condition is not met.
Just return QStringList()
And you need to check the returned list before attempting access by index.
Something like
Qt Code:
if (!deviceInfos.isEmpty() && m_D2xxport->PortConfiguration( deviceInfos.at(0).... )To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks