Skip to content

Conversation

@IntelligentSynthesis
Copy link

Fix #176, #188: 完善nativeEvent, Windows增加标题栏右键系统菜单和alt+enter快捷键。双击标题栏最大/还原由nativeEvent处理。修改置顶改为Windows原生实现。
pyside6分支titlebar删除未使用的引用,修改mouseDoubleClickEvent,Windows下由nativeEvent处理,无需使用。

完善nativeEvent, Windows增加标题栏右键系统菜单和alt+enter快捷键。双击标题栏最大/还原由nativeEvent处理。修改置顶改为Windows原生实现。
pyside6分支titlebar删除未使用的引用,修改mouseDoubleClickEvent,Windows下由nativeEven和系统处理。
@zhiyiYo
Copy link
Owner

zhiyiYo commented Nov 16, 2025

标题栏的双击最大化是要跨平台的,没必要用 windows 的消息吧

@IntelligentSynthesis
Copy link
Author

由于前面加了win32con.HTCAPTION,如果这里注释掉

elif msg.message == win32con.WM_NCLBUTTONDBLCLK and msg.wParam == win32con.HTCAPTION:
            # enable/disable double click on titlebar
            if not self._isResizeEnabled or not self.titleBar._isDoubleClickEnabled:
                return True, 0

就会导致双击最大化不能禁用,既然windows的能用就把titlebar的双击事件修改了,当然不改实际上也不影响。

naitiveEvent修改后此处不生效无需判断,
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.

2 participants