Qt串口mycom->write()函数写入失败的判断
/********************************************************************/
******************by: dxsdcxy*************************************
********************************************************************/
官方文档解释:
Version:1.0 StartHTML:0000000105 EndHTML:0000009512 StartFragment:0000000127 EndFragment:0000009494
qint64 QIODevice::write ( const char * data, qint64 maxSize )
Writes at most maxSize bytes of data from data to the device. Returns the number of bytes that were actually written, or -1 if an error occurred.
See also read() and writeData().
qint64 QIODevice::write ( const char * data )
This is an overloaded function.
Writes data from a zero-terminated string of 8-bit characters to the device. Returns the number of bytes that were actually written, or -1 if an error occurred. This is equivalent to
... QIODevice::