if(ui->hexWrite->isChecked()) //选择16进制发送数据{hexByte=QByteArray::fromHex(inputData.toLatin1().data());my_serialport->write(hexByte);}
char 10转16啊