开发者

Qt-Frameless window and OS button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜