-
Notifications
You must be signed in to change notification settings - Fork 143
fix: Fix cursor style not updating after theme switch #2988
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9f46a5c to
99c6954
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23, re2zero The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Added MouseArea with explicit cursorShape to provide default cursor for all areas. Log: Fix cursor style not updating after theme switch. pms: BUG-325241
deepin pr auto review这段代码在 1. 语法逻辑审查
2. 代码质量审查
3. 代码性能审查
4. 代码安全审查
5. 改进建议方案一:优化当前实现(推荐)如果目的是强制窗口内的鼠标样式始终为箭头,建议将 D.ApplicationWindow {
// ... 其他属性 ...
// 强制窗口内鼠标样式为箭头,防止底层控件改变光标
MouseArea {
anchors.fill: parent
enabled: false // 允许事件穿透,但不处理任何事件
cursorShape: Qt.ArrowCursor
}
// ... 其他子项 ...
}方案二:使用
|
|
/merge |
Added MouseArea with explicit cursorShape to provide default cursor for all areas.
Log: Fix cursor style not updating after theme switch.
pms: BUG-325241