-
现象描述:搜索 Java 的时候整个界面卡住(窗口无响应),然后等了很长一段时间才反应过来。 看了一下实现,虽然用上了 可以试试在开始搜索时再显示一个正在搜索的窗口(或控件),让子线程通过回调的方式通知主线程搜索完成并关闭刚才的窗口(控件)。
|
Beta Was this translation helpful? Give feedback.
Answered by
LxHTT
Mar 22, 2023
Replies: 3 comments
-
确实可以,可以试试在QThread里创建一个pyqtSignal,在主线程订阅(connect)这个信号,当子线程QThread运行结束时在通过pyqtSigna;l.emit方法来发出事件 |
Beta Was this translation helpful? Give feedback.
0 replies
-
有空就改,已收到 |
Beta Was this translation helpful? Give feedback.
0 replies
-
本问题已经在最新构建版修复。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LxHTT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
本问题已经在最新构建版修复。