stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
442 stars 67 forks source link

禁用双击标题栏时切换窗口最大化状态 #82

Open zhiyiYo opened 2 months ago

zhiyiYo commented 2 months ago

请问目前有禁用双击标题栏时切换窗口最大化状态的接口吗?

SineStriker commented 2 months ago

没有,我觉得也没必要

zhiyiYo commented 2 months ago

比如我自定义了一个标题栏,只保留了关闭按钮,这时候用户双击最大化窗口布局就会乱掉

SineStriker commented 2 months ago
setWindowFlag(Qt::WindowMaximizeButtonHint, false);

这个好像 Windows 一直是行的,mac 和 linux 我得去改一下。

zhiyiYo commented 2 months ago

感谢,我试下

zhiyiYo commented 2 months ago

Windows 可以生效

zhiyiYo commented 2 months ago

mac 貌似不起作用

SineStriker commented 2 months ago

mac 貌似不起作用

你拉最新的了吗?