-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
[Bug]: Gallery的demo运行后当在默认窗口大小时点击侧边栏的菜单按钮展开时耗时比较久 #642
Comments
把亚克力效果关掉应该会好很多 |
我的是mac,没有启用亚克力效果呢 |
而且默认窗口大小展开就比较耗时,最大化后就不会,很奇怪,具体是哪些代码耗时比较久需要大佬排查下了,两个不同状态耗时不是一个数量级的 |
我再测试一下 |
最大化之后应该不会显示成菜单模式吧? |
把 main_window.py 构造函数的下述代码注释掉应该就不会启用亚克力了 self.navigationInterface.setAcrylicEnabled(True) |
可以是 mac 分辨率太高导致磨砂时间过长,应该对图像进行缩放来加快磨砂速度 |
谢谢大佬,注释掉后正常了 |
建议增加一个开关,支持关闭所有动画和亚克力效果等所有可能影响性能的功能,在自定义的同时尽量保持原生Qt的性能表现 😘 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Gallery的demo运行后当在默认窗口大小时点击侧边栏的菜单按钮展开时耗时比较久,每次展开侧边栏接近耗时1秒
但是如果最大化窗口后再点击菜单按钮进行展开则耗时正常
Operation System
Mac
Python Version
3.9.6
PyQt/PySide Version
PyQt5.15.10
PyQt/PySide-Fluent-Widgets Version
1.3.8
How to Reproduce?
这是默认窗口大小点击菜单按钮展开的耗时:
这是最大化窗口点击菜单按钮展开的耗时:
Minimum code
The text was updated successfully, but these errors were encountered: