ChinaUnix.net
相关文章推荐:

qt 串口通信

[serial.cpp] #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc,argv); MainWindow m; a.setMainWidget(&m); m.show(); return a.exec(); } [mainwindow.h] #ifndef MAIN_WINDOW_H #define MAIN_WINDOW_H #include class QLabel; class QPushButton; class QLineEdit; class QPixmap; class SerialThread; class MainWindow:public QMainWi...

by yqliu29 - Linux文档专区 - 2008-06-12 21:01:26 阅读(574) 回复(0)

相关讨论

[serial.cpp] #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc,argv); MainWindow m; a.setMainWidget(&m); m.show(); return a.exec(); } [mainwindow.h] #ifndef MAIN_WINDOW_H #define MAIN_WINDOW_H #include class QLabel; class QPushButton; class QLineEdit; class QPixmap; class SerialThread; class MainWindow:public QMainWin...

by DEJUN - Linux文档专区 - 2008-02-15 23:46:41 阅读(1584) 回复(0)

2 qt通信机制

为了更好的实现qt的信息交互,在

by leibniz_zsu - 移动操作系统 - 2011-12-20 09:44:10 阅读(627) 回复(0)

http://xizhizhu.blogspot.com/2009/01/qt-development-vi-tcp-communication.html 1.qtcpSocket qtcpSocket is used as the TCP socket in qt. It's used both in client and server side. To perform as a client, following steps are used: a) call qtcpSocket.connectToHost() to connect to a server; b) when connected, qtcpSocket.connected() will be emitted; c) communicate with the server. The following code ...

by zxz1984 - GUI编程 - 2009-11-14 19:51:36 阅读(8895) 回复(4)

要使用qt + mingw 在windows 下做一个通过串口配置设备的程序 要怎样才能读写串口呢?

by Roemer - GUI编程 - 2008-07-04 01:52:33 阅读(5927) 回复(3)

qt4的 文件: qextserialport-1.1.tar.gz 大小: 189KB 下载: 下载 qt3的 文件: qextserialport-0.9.0.tar.gz 大小: 49KB 下载: 下载 文件: qextserialport-0.8.0.tar.gz 大小: 49KB 下载: 下载 都是封装好的qt类可以直接拿来就用,qextserialport-1.1.tar.gz有实例程序! 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/67823/showart_680050.html

by pplinux - Linux文档专区 - 2008-05-07 15:23:36 阅读(1573) 回复(0)

http://xizhizhu.blogspot.com/2009/01/qt-development-vii-ssl-communication.html SSL is widely used nowadays to provide secure communication, whichperforms as a new layer between TCP and application. In qt, theQSslSocket class provides an SSL encrypted socket for both servers andclients. 1.Client The following steps are most commonly used: a) call QSslSocket.setProtocol() and other functions to se...

by zxz1984 - GUI编程 - 2009-01-13 03:03:02 阅读(5633) 回复(0)

多线程+串口读数据 [serial.cpp] #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc,argv); MainWindow m; a.setMainWidget(&m); m.show(); return a.exec(); } [mainwindow.h] #ifndef MAIN_WINDOW_H #define MAIN_WINDOW_H #include class QLabel; class QPushButton; class QLineEdit; class QPixmap; class SerialThread; class M...

by snowyhm - Linux文档专区 - 2007-11-20 11:04:03 阅读(827) 回复(0)

最近的 软件工程 课程设计让我重新开始使用qt,上次数据结构的 课程设计 也是用qt,虽然是做出来了,但是现在想想,那个时候对qt的理解,或者说得更广一点,对OO的理解,简直太差劲了,当然,人的知识是进步的,所以现在有这样的感受是很正常的。虽然整体的开发工作还没有完全结束,但是已经有了很多心得体会,所以特来记录分享一下。 我们的系统采用的是C/S结构,所以客户端与 服务器 通信是最关键,不幸的是,虽然我们没有用过...

by leecapacity - Linux文档专区 - 2009-06-06 03:14:49 阅读(1344) 回复(0)

本帖最后由 c/unix 于 2010-11-18 12:11 编辑 附件: 说明: 1,刚写的一个测试板子的小程序,串口操作用的是一个开源第3方类库,qextserial,网上有相关介绍和下载。 2,程序运行在windows系统,直接用qt creator即可运行。 3,如需移植到linux系统,只需替换对应的qextserial文件即可。 截图:

by c/unix - GUI编程 - 2010-11-18 12:06:07 阅读(4353) 回复(0)

使用qt作主界面,通过串口操作GPRS实现打电话,发短信 //首先解决串口操作的问题 #ifndef UARTIO_H #define UARTIO_H int open_uart(char *fname); int set_uart_speed(int fd, int speed); int set_uart_parity(int fd, int databits, int stopbits, int parity); ssize_t read_uart_timeout(int fd, void *buf, size_t count, int timeout); #endif #include //串口头文件 #include #include #include #include int __spee...

by creatory - Linux文档专区 - 2012-03-19 09:17:54 阅读(3204) 回复(1)