开发者

Qt tool window resizable on Mac

开发者 https://www.devze.com 2023-01-28 14:47 出处:网络
I have a Qt window with the following flags: Qt::CustomizeWindowHint |Qt::Tool |Qt::WindowCloseButtonHint

I have a Qt window with the following flags:

Qt::CustomizeWindowHint
|Qt::Tool
|Qt::WindowCloseButtonHint
|Qt::WindowTitleHint
|Qt::MSWindowsFixedSizeDialogHint

On Mac, it has a resizable corner. How can I get rid of it? Specifying

setSizePolicy(QSizePolicy(QSizePolicy::F开发者_Python百科ixed, 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.


This is in the Qt FAQ.

0

精彩评论

暂无评论...
验证码 换一张
取 消