定義一個變數: enum QSerialPort::SerialPortError error_num;. 我想在error_num=1時,輸出字串“QSerialPort::DeviceNotFoundError”,. 方法如下:
確定! 回上一頁