摘要: 设计方案1: 在PLC上,当使用QDial调节音量时,触发QDial的SIGNAL:ValueChange(),对应SLOT向LPC发送自定义键码0x22; 在LPC上,当接收到0x22键码时,执行操作:设置当前volume值,当设置完成后,PLC将接收到来自LPC的volume数据进行更新。 发现 阅读全文
posted @ 2017-04-06 14:56 shawn06 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: 1、wchar_t 转 QString wchar_t a[10]; QString str1= QString::fromWCharArray(a); 2、int/char 转 16进制QString 补0 int a = 0x0483; QString str1 = QString("%1"). 阅读全文
posted @ 2017-04-06 14:45 shawn06 阅读(666) 评论(0) 推荐(0) 编辑