資源簡介
工業(yè)系統(tǒng)大多需要使用到掃描槍,因此系統(tǒng)與掃描槍的交互需要建立連接。測試程序采用的是motorola的掃描槍,其他沒有測試過。但是,程序代碼針對是的普通COM端口進行讀取數(shù)據(jù)的,因此,相信其他類型的掃描槍同樣適用。

代碼片段和文件信息
#include?“mainwindow.h“
#include?
int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
????MainWindow?w;
????w.show();
????return?a.exec();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????183??2016-10-11?08:05??testscanner\main.cpp
?????文件???????1740??2016-10-11?09:23??testscanner\mainwindow.cpp
?????文件????????761??2016-10-11?09:23??testscanner\mainwindow.h
?????文件???????1831??2016-10-11?09:20??testscanner\mainwindow.ui
?????文件????????545??2016-10-11?08:34??testscanner\testscanner.pro
?????文件??????23875??2016-10-11?09:12??testscanner\testscanner.pro.user
?????目錄??????????0??2016-10-11?09:23??testscanner
-----------?---------??----------?-----??----
????????????????28935????????????????????7
評論
共有 條評論