我在做一个扫描钱的实验,在ubuntu系统下用QT做,barcode_fd = ::open("/dev/input/event2",O_RDONLY),
qDebug()<<tr("barcode_fd = %1").arg(barcode_fd);调试出来barcode_fd = 19,可是接下来读取数据就错了
result = ::read(barcode_fd,&my_input_event,sizeof(struct input_event));
这里就卡死了,不执行下面的语句了上面的其他语句也执行
跪求为何!!!!!!!!!!!!