This repository was archived by the owner on Mar 23, 2026. It is now read-only.
fix: 进程关闭流程优化#497
Merged
Merged
Conversation
Member
Author
- 添加清理资源方法 - 防止多次销毁 - 安全终止线程
- 还是收不到taskkill的信号,再不行就只能用暴力的方法了
Member
Author
|
我认为这样应该可以正常关机了,taskkill不管了, |
- 其实没有必要了,,
- 防止出现UnboundLocalError
IsHPDuwu
reviewed
Apr 26, 2025
| for child in self.findChildren(QObject): | ||
| child.deleteLater() | ||
| super().closeEvent(event) | ||
| self.deleteLater() |
Member
Author
There was a problem hiding this comment.
(其实我也不指望放这里的closeEvent用处)
pizeroLOL
pushed a commit
to pizeroLOL/Class-Widgets
that referenced
this pull request
Aug 10, 2025
## 总览 ### 线程优化 - `main.py`: add.等待线程完全终止 - `network_thread.py`add.运行状态`_running` - 退出时进行子对象清理 - 顺便兼容了下ctrl+c( ---- ### 测试 - [ ] 关机报错.?(找人测试) - 也许能解决这种玄学问题( - [ ] `taskkill`非强制关闭(诶,又不行了,,) - [X] `退出程序`控件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

总览
线程优化
main.py: add.等待线程完全终止network_thread.pyadd.运行状态_running测试
taskkill非强制关闭(诶,又不行了,,)退出程序控件