Easy to read 60 lines of code, minimal threading example, shows blank widget! 😊
-
What version of PyQt5 and Qt are you using ?
On what OS ?I have both thread outputs here.
-
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
Name: PyQt5 Version: 5.12.1 Summary: Python bindings for the Qt cross platform UI and application toolkit Home-page: https://www.riverbankcomputing.com/software/pyqt/ Author: Riverbank Computing Limited Author-email: info@riverbankcomputing.com License: GPL v3 Location: c:\python36-32\lib\site-packages Requires: PyQt5-sip Required-by: QScintilla, PyQtChart
-
I know I'm running 32-bit python because it's installed to C:\Python36-32 and that's my convention. I think I updated everything a few days ago in order to look at a pyinstaller issue.
-
What are your versions, maybe I should try those out?
-
Just tested with the latest version available on macOS through pip and it worked as expected.
-
Just tested with the latest version available on macOS through pip and it worked as expected.
This post is deleted! -
Just tested with the latest version available on macOS through pip and it worked as expected.
I'm trying out Python 3.7 now, but maybe PyQt5 won't even install, so... I'll try some things out. Any ideas? Should I just combine the work of the two threads into one thread, since I do have exactly the same loop sleep set of 1 ms (the practical min).
I'm testing 3.7.3 both 32 and 64-bit.
-
I tried 3.7.3 64-bit and the latest PyQt5 did install. However, the minimal app is having the exact same issue on my system.
So I will just combine the different threads all into one, and switch between the cases.
-
Might be a silly test, but did you try using the QThread method to start your thread ? As I wrote earlier, I don't know how startRunning is implemented.
-
Might be a silly test, but did you try using the QThread method to start your thread ? As I wrote earlier, I don't know how startRunning is implemented.
@SGaist said in Easy to read 60 lines of code, minimal threading example, shows blank widget! 😊:
Might be a silly test, but did you try using the QThread method to start your thread ? As I wrote earlier, I don't know how startRunning is implemented.
Nope, that had no effect.