Home > OS >  Using scanning gun QT5 input into Qlineedit get garbled
Using scanning gun QT5 input into Qlineedit get garbled

Time:10-08

Using the scanning gun under LINUX, QT5 input into Qlineedit get garbled,
Such as 1 s972639347823943
After the scan! 1 s972639347823943
One becomes a "!" , other is correct, the probability is 95% will go wrong, change this is only a value,
When I went to a text editor or terminal scanning input is 100% correct,
Code should be CODE128, specific what kind of unclear,
I ask you,

CodePudding user response:

Its top 1

CodePudding user response:

Sweep yards gun and keyboard input what is not much, so I think, first you need to get the content examination content, shown on the QLineEdit that,
If does not contain a bar code! , then directly replace 1

CodePudding user response:

Then you should not edit box, is scanning guns there recognition problem, you can have a try, came under the direct output string,

CodePudding user response:

refer to the second floor dext response:
sweep yards gun and keyboard input what is not much, so I think, first you need to get the content examination content, shown on the QLineEdit that,
If does not contain a bar code! , then it is good to replace 1 directly


Now I just replaced the directly, but this is a stupid way,

Found a relationship with the Chinese input method, can trigger a shift event, lead to the number 1 turned out to be! .
Is checking why Chinese input method will lead to the scanning gun trigger is shift rather than enter events,
  • Related