May 4, 2012

qt_newbie qt_newbie
Lab Rat
1 posts

Qt Applications using the serial port?

 

Hello Qt forum!

I am a Windows .net C# programmer and have recently discovered the joys of c++ with Qt. I do have a good solid backround in ANSI c and c++ with the Win32 API and MFC but I still find MFC to be ugly and unintuituve so I avoid it like the plague! I had therefore kind of abandoned c++.

But now that I have discovered Qt I would love to delve deeper into it and rediscover c++ as a valuable language to develop fast native graphical applications, particularly in a platform independant manner (would love to start developing on Linux!)

My question is:

I am a low level system developer and often have to develop socket and serial port applications but I am unsure how to interact with the serial port using Qt?

I have done a bit of an internet search and am aware of a few 3rd party Qt projects (QSerialDevice) and also note that there is an official Qt serial port class soon to be available in Qt5 (QtSerialPort) but I am not sure how to get access to it and use it from the repositories (git respositories?)

Could somebody please describe how I can get hold of this QtSerialPort class and perhaps point me to a simple tutorial on how to use it?

Many thanks

2 replies

May 4, 2012

qxoz qxoz
Mad Scientist
1079 posts

Look at:
http://qt-project.org/wiki/QtSerialPort [qt-project.org]
and download here:
https://qt.gitorious.org/qtplayground/qtserialport/archive-tarball/master [qt.gitorious.org]

package include some examples, for start point.

also you can use:
http://code.google.com/p/qextserialport/ [code.google.com]

May 4, 2012

kuzulis kuzulis
Robot Herder
374 posts

Note: For QtSerialPort also added support/compliant to the Qt4.

 
  ‹‹ QDialog Embedded in QWidget      [SOLVED] Select a QGraphicsItem in a scene ››

You must log in to post a reply. Not a member yet? Register here!