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. QextSerialport
Qt 6.11 is out! See what's new in the release blog

QextSerialport

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 9.2k 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.
  • A Offline
    A Offline
    Ankit.k
    wrote on last edited by
    #1

    I want to send/receive data through my serial port using QT. I downloaded the qextserialport code from the below site
    code.google.com/p/qextserialport/
    As qextserialport is an add-on, can anyone direct me how to use the code in my program for using serial port.

    Thank you

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Read any readmes/ docs provided by the project.

      You can also check out QtSerialPort, which will become part of Qt in v. 5.1 (it also works with Qt4, has a nice API and is easy to install).

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ankit.k
        wrote on last edited by
        #3

        I read the readme file. But I am confused with the procedure, How to include the qextserialport in qmake project file

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          if doesn't matter for you what library use i'd recommend you "qtserialport":http://qt.gitorious.org/qt/qtserialport
          i cant tell you which is better but in my opinion qtserialport more advanced.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dcbasso
            wrote on last edited by
            #5

            I'm using here no problem!

            I add the folder /qextserialport to the folder of my project:

            @/MyAppProject
            ...
            /qextserialport@

            And with qtcreator I open the PROJECT:
            @
            /MyAppProject/qextserialport/buildlib/buildlib.pro
            @
            Then I build the project. Well Now we have the lib necessary.

            Again on the "MyAppProject", I add this on the "MyAppProject.pro":

            @
            CONFIG += extserialport

            include(qextserialport/src/qextserialport.pri)
            @

            Now you are able to use the qextxserialport!

            @
            #include <qextserialport.h>
            ....
            QextSerialPort* portaSerial = new QextSerialPort();
            @

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dcbasso
              wrote on last edited by
              #6

              understood my explanation?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Ankit.k
                wrote on last edited by
                #7

                Got your explanation!!
                Thanks so much
                But I couldn't find qextserialport/buildlib/buildlib.pro in download

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Ankit.k
                  wrote on last edited by
                  #8

                  Will I be getting a .so file

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dcbasso
                    wrote on last edited by
                    #9

                    I can send a copy for you!
                    I got the files from GIT!

                    git clone https://code.google.com/p/qextserialport/

                    If you need, contact me and I send you the files.

                    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