Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread keeps open #4

Open
turkin opened this issue Nov 7, 2016 · 2 comments
Open

thread keeps open #4

turkin opened this issue Nov 7, 2016 · 2 comments

Comments

@turkin
Copy link

turkin commented Nov 7, 2016

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.

@riklaunim
Copy link
Owner

Yes, there is "terminate" method on QThread.

@turkin
Copy link
Author

turkin commented Nov 7, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants