Qt and serial port programming [closed]

风流意气都作罢 提交于 2019-12-31 10:40:11

问题


Is there any serial port facilities in Qt ?

If not, which crossplatform (desirable) libraries (for working with serial port and, maybe, with other I/O ports), do you recommend ?


回答1:


Take a look at the Project QextSerialPort.




回答2:


Well, there's always Boost.

In Boost there is a great Async I/O library called ASIO. It can perform operations in all sorts of endpoints, including serial ports.

There is a great example about how to build a minicom-like application using Boost::Asio, that you can use to see if ASIO will attend your needs.

Since boost works on all platforms/compilers under the sun, the cross platform requirement can be checked.

Cheers.




回答3:


Here is a Qt serial library, works on Win, WinCE, Linux (i386 and ARM), Mac...

http://gitorious.org/inbiza-labs/qserialport

Also, it is based on QIODevice for a native feel, with it you can, if you like, direct serial communication onto TCPIP with little no no effort.

It is LGPL also... enjoy.



来源:https://stackoverflow.com/questions/1459344/qt-and-serial-port-programming

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!