Skip to content

[0150] 修复演讲模式闪烁#3415

Open
da-liii wants to merge 2 commits into
mainfrom
da/150/xxx
Open

[0150] 修复演讲模式闪烁#3415
da-liii wants to merge 2 commits into
mainfrom
da/150/xxx

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 20, 2026

修复内容

  • 修复演讲模式下光标移动导致的界面闪烁
  • 禁用 viewport 自动填充并初始化 backing pixmap

🤖 Generated with Claude Code

da-liii and others added 2 commits May 20, 2026 12:39
更新任务文档,记录闪烁问题的根因分析和修复方案。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
在 Windows 上,演讲模式下 viewport 背景为黑色,但 beamer 幻灯片背景通常为白色。
Qt 在子 widget 重绘前会自动填充 viewport 背景,导致黑色短暂显示后变白,产生闪烁。

修复内容:
1. 进入演讲模式时关闭 viewport 的 autoFillBackground 并设置 WA_OpaquePaintEvent
2. 退出时恢复这些设置
3. 在创建新 backing pixmap 时先用 tm_background 填充,避免未初始化区域显示为黑色
4. 添加单元测试验证 viewport 属性切换

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant