Fixing Threads in PySide2

后端 未结 1 2023
不思量自难忘°
不思量自难忘° 2021-01-28 03:53

I have programmed an application using PySide2 with some 800 lines of code and now when I want to show a variable in the progress bar it crashes after a short while without any

相关标签:
1条回答
  • 2021-01-28 04:20

    Try using QThreads instead of regular threads. They work in a very similar fashion, but they provide thread safe invoke to the UI thread.

    Example

    0 讨论(0)
提交回复
热议问题