gpt4 book ai didi

c++ - Qt-Frameless 窗口和 OS 按钮

转载 作者:行者123 更新时间:2023-11-28 08:24:01 28 4
gpt4 key购买 nike

您好,

我有一个无框架应用程序,我在其中重新实现了我的菜单栏。我想获得操作系统(Max、Windows ...)的默认关闭、最小化和最大化按钮。

有人可以给我一些指导或提示吗?我试过使用:

maxPix = style()->standardPixmap(QStyle::SP_TitleBarMaxButton); 但我找不到对应的。

非常感谢。

最佳答案

尝试使用 CustomizeWindowHint 并在设置 Qt::FramelessWindowHint 之后设置 Qt::WindowMinimizeButtonHint。

http://doc.trolltech.com/4.6/qt.html

搜索 CustomizeWindowHint 标志。

关于c++ - Qt-Frameless 窗口和 OS 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4715273/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com