pyusb-keyboard-alike icon indicating copy to clipboard operation
pyusb-keyboard-alike copied to clipboard

thread keeps open

Open turkin opened this issue 8 years ago • 2 comments

I could make it work, but when I put it on a multi-window app, i run the main app, and i run this in a new qwidget, i close the new window and i return to the main window. Then if i try to reopen the qwidget where i use the barcode scanner, it doesn't works because the resourse is busy. I think the problem is that the thread keeps open. Is there a kind of "thread.stop" or something like that. Sory for my english.

turkin avatar Nov 07 '16 14:11 turkin

Yes, there is "terminate" method on QThread.

riklaunim avatar Nov 07 '16 15:11 riklaunim

ok! the thread stops. I found that the problem is that when i open again the qwidget, "rfidreader" was already initialized, so the app doesn't responds.. how can i "finish" rfidreader when i close the qwidget? Thanks

turkin avatar Nov 07 '16 16:11 turkin