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. qt example master serial port

qt example master serial port

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 352 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.
  • L Offline
    L Offline
    lgeorge
    wrote on last edited by
    #1

    I know that QT have an example of said master serial port . Under this example I wish to know if I click the start button , the string "who are you" will end with end of line "/n" ?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      The blocking example ?
      https://doc.qt.io/qt-5/qtserialport-blockingmaster-example.html

      The text is just "Who are you?"
      so there is no line ending.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeorge
        wrote on last edited by
        #3

        So what should I add item in order to add line ending ?

        mrjjM 1 Reply Last reply
        0
        • L lgeorge

          So what should I add item in order to add line ending ?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @lgeorge
          just add to the string like
          m_requestLineEdit(new QLineEdit(tr("Who are you?\n"))),
          or add it when sending in the void Dialog::transaction()

          1 Reply Last reply
          1

          • Login

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