[英]Qt tool window resizable on Mac
I have a Qt window with the following flags: 我有一个带有以下标志的Qt窗口:
Qt::CustomizeWindowHint
|Qt::Tool
|Qt::WindowCloseButtonHint
|Qt::WindowTitleHint
|Qt::MSWindowsFixedSizeDialogHint
On Mac, it has a resizable corner. 在Mac上,它有一个可调整大小的角落。 How can I get rid of it?
我怎么能摆脱它? Specifying
指定
setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
does not help. 没有帮助。 In fact, with the fixed-size policy the window acts weird when I try to resize - it disappears from foreground and becomes disabled for some reason.
实际上,使用固定大小的策略时,当我尝试调整大小时,窗口的行为很奇怪-它从前台消失,由于某种原因而被禁用。
I don't mind dropping to the native API level. 我不介意放到本机API级别。
这是在Qt FAQ中 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.