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
-
Look at:
"http://qt-project.org/wiki/QtSerialPort":http://qt-project.org/wiki/QtSerialPort
and download here:
"https://qt.gitorious.org/qtplayground/qtserialport/archive-tarball/master":https://qt.gitorious.org/qtplayground/qtserialport/archive-tarball/masterpackage include some examples, for start point.
also you can use:
"http://code.google.com/p/qextserialport/":http://code.google.com/p/qextserialport/ -
Note: For QtSerialPort also added support/compliant to the Qt4.