Sender::Sender( const QString &portName, QSerialPort::BaudRate baudRate, QSerialPort::DataBits dataBits, QSerialPort::Parity parity, QSerialPort::StopBits stopBits, QSerialPort::FlowControl flowControl ) : m_port( portName ), m_baudRate( baudRate ), m_dataBits( dataBits ), m_parity( parity ), m_stopBits( stopBits ), m_flowControl( flowControl ){ // Set the port name m_port.setPortName( m_portName );
C++ (Qt)QSerialPort m_port;
C++ (Qt)QSerialPort m_serialPort;
C++ (Qt) // Set the port name m_serialPort.setPortName( m_portName );