-
Notifications
You must be signed in to change notification settings - Fork 21
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
What is the proper way to launch the qt5reactor and QApplication? #12
Comments
I don't know that there's a strictly "proper" method (since either method could work), however, My guess is that the |
Hmm, I tried lots of stuff but either something changed or I didn't try: https://gist.github.com/altendky/faf48446c335418dac8793635d119750#file-qt5reactor_threads_run-py Seems to work there and look kinda clean (even if my gut says Twisted should be subserviant to Qt |
I think I get a similar issue on Windows. The Python script hangs after I close the window. Here is a ticket for it. #15 |
I started using threads and ran into some issues. Turns out that while the reactor was 'working' for many things it wasn't getting started correctly and so
deferToThread()
didn't work and even when I started it up the application would then hang on exit.What is the proper way to launch the
qt5reactor
andQApplication
?The readme covers installing the reactor in one of two ways but does not cover
reactor.run()
vsapp.exec()
or maybe something withreactor.runReturn()
or...My simple example for
deferToThread()
(both forqt5reactor
and puretwisted
) are available in this gist.https://gist.github.com/altendky/faf48446c335418dac8793635d119750
The text was updated successfully, but these errors were encountered: