Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QserialPort StopBits too args

QserialPort StopBits too args

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 906 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Milori
    wrote on last edited by
    #1

    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.

    K 1 Reply Last reply
    0
    • M Milori

      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.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @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

      serial->setStopBits(QSerialPort::OneStop); 
      serial->setFlowControl(QSerialPort::NoFlowControl); 
      

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Milori
        wrote on last edited by
        #3

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

        K 1 Reply Last reply
        0
        • M Milori

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

          K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          @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"

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved