当前位置: 首页 > news >正文

网站开发如何报价单烟台优化公司

网站开发如何报价单,烟台优化公司,上海工程招标网招标公告,建设品牌型网站头文件 #include QSerialPort #include QSerialPortInfo 模块 QT core gui serialport 编程步骤 配置一个ui界面#xff0c;五个QComboBox和一个按钮和一个QTextEdit 添加一个成员 private:QSerialPort *serial; 在构造函数中初始化ui端口列表和…头文件 #include QSerialPort #include QSerialPortInfo 模块 QT core gui serialport 编程步骤 配置一个ui界面五个QComboBox和一个按钮和一个QTextEdit 添加一个成员 private:QSerialPort *serial; 在构造函数中初始化ui端口列表和串口 //获取当前主机上所有可用的端口QListQSerialPortInfo list QSerialPortInfo::availablePorts();//将获取的端口列表设置到ui界面上for(int i0; ilist.size(); i){ui-comboBox_port-addItem(list.at(i).portName());}//串口对象serial new QSerialPort;//关联串口收到数据就会触发QSerialPort::readyRead信号然后显示出来connect(serial,QSerialPort::readyRead,this,[](){//读取数据QByteArray data serial-readAll();//显示ui-textEdit-append(data);}); 连接按钮点击函数 //设置串口端口serial-setPort(QSerialPortInfo(ui-comboBox_port-currentText()));//1、设置波特率if(ui-comboBox_baud-currentText() 9600){serial-setBaudRate(QSerialPort::Baud9600);}else if(ui-comboBox_baud-currentText() 115200){serial-setBaudRate(QSerialPort::Baud115200);}else if(ui-comboBox_baud-currentText() 38400){serial-setBaudRate(QSerialPort::Baud38400);}//2、设置数据位if(ui-comboBox_dataBits-currentText() 5){serial-setDataBits(QSerialPort::Data5);}else if(ui-comboBox_dataBits-currentText() 6){serial-setDataBits(QSerialPort::Data6);}else if(ui-comboBox_dataBits-currentText() 7){serial-setDataBits(QSerialPort::Data7);}else if(ui-comboBox_dataBits-currentText() 8){serial-setDataBits(QSerialPort::Data8);}//3、设置奇偶校验位if(ui-comboBox_parity-currentText() None){serial-setParity(QSerialPort::NoParity);}//4、设置停止位if(ui-comboBox_stopBits-currentText() 1.5){serial-setStopBits(QSerialPort::OneAndHalfStop);}else if(ui-comboBox_stopBits-currentText() 1){serial-setStopBits(QSerialPort::OneStop);}else if(ui-comboBox_stopBits-currentText() 2){serial-setStopBits(QSerialPort::TwoStop);}//5、打开串口serial-open(QIODevice::ReadWrite);
http://www.hkea.cn/news/14592625/

相关文章:

  • 母婴 网站 策划小企业网站服务器
  • 建站外贸企业官网推广企点账户中心
  • 京东网站哪个公司做的汕头市区
  • xss网站怎么搭建网页设计与网站开发pdf
  • 美丽乡村 村级网站建设php外贸网站建设
  • 长沙做网站的公司有哪些wordpress 首页 函数
  • 电商网站建设培训网站模块数据同步
  • 网络营销热点事件案例分析广州百度seo
  • 如何做网站推广获客网站数据维护
  • 用表格做网站建设网站必备条件
  • wordpress网站很慢wordpress主题大前端dux去授权
  • 网页制作模板的网站代码wordpress ie8 兼容
  • 在线免费开网站校园网网站建设规划
  • 文化厅网站建设审核报告单wordpress 子页面列表
  • 织梦网站流动广告代码网页翻译功能在哪
  • 网站开发人员介绍手机 互动网站案例
  • 百度网站的网址是什么如何制作网页设计首页
  • 国内网站是cn还是com怎么在建设银行网站挂号
  • 鹤壁做网站的公司百度seo关键词排名推荐
  • 江门网站快速排名优化网站平台优化
  • 在线解压网站phpcms网站seo怎么做
  • 做网站找哪个软件怎么制作链接带图片和文字编辑
  • jsp环保主题网站代做免费wordpress博客
  • seo整站优化外包服务icp备案域名购买
  • 校园网站设计开题报告百度 手机网站 友好性
  • seo建站网络公司郑州网站建设哪家好
  • 苏州专业网站建设设计公司网站服务器选择
  • 网站设计搜索栏怎么做网站视频下载软件
  • 网站新功能演示用什么技术做的肇庆网站建设优化
  • 合肥市建设建筑网站网站内容策划方案