Important: Please read the Qt Code of Conduct -

QserialPort StopBits too args

  • Hi,
    in def serial->stopBits(QSerialPort::OneStop); and serial->flowControl(QSerialPort::NoFlowControl); is error "Too Much arguments" Other enum options work normally. Where to look for a bug.

  • @Milori

    Hi and welcome to devnet

    You are trying to use the getter routines which are constant and do not have arguments.

    You need to use the second option listed in the documents in this case setStopBits.

    Therefore try


  • Hi,
    I overlook the function prefix set... Now code work as excpected.
    Thank You

  • @Milori

    You are welcome.
    It looks a bit misleading in the doucmentation, especially when you are not used to it.

    Please mark also this thread as solved, when it is for you.
    You should find teh "Topic Tools" button and click on "Mark as Solved"

Log in to reply