按照http://blog.youkuaiyun.com/g1036583997/article/details/44805217的方法,QT添加qextserialport类读取uart传来的数据,用qt creator编译出现Trying to open File Could not open File! Error code : 5的错误。
方法是:设备文件没有打开的权限,在终端下输入:chmod 666 /dev/ttyUSB0。其中ttyUSB0是你自己要打开的设备文件。