开发者

Qt-Frameless window and OS button

开发者 https://www.devze.com 2023-02-05 06:46 出处:网络
Hello, I have a frameless application in which i have reimplemented my menu bar. I want to get the default close, minimize and maximize button for the os (Max, Windows ...).

Hello,

I have a frameless application in which i have reimplemented my menu bar. I want to get the default close, minimize and maximize button for the os (Max, Windows ...).

Can somebody give me a sort of guideline or tips to do so ? I've tried using :

maxPix = style()->standardPixmap(QStyle::SP_TitleBarMaxButton); but i can't开发者_如何学Python find the corresponding one.

Thank you deeply.


Try playing around with CustomizeWindowHint and setting Qt::WindowMinimizeButtonHint after you set Qt::FramelessWindowHint.

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

Search for CustomizeWindowHint flag.

0

精彩评论

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