开发者

PyQT Remove the programs Title Bar?

hi does anybody knows how to remove the programs title bar? (In PyQT or in Designer) my goa开发者_StackOverflow社区l is i need to replace it with my own title bar.

thanks to anyone who can help me.


The title bar is managed by the window manager and not by the application. Therefore you can not modify the title bar with the Qt Designer.

You can hide the title bar with widget.setWindowFlags(QtCore.Qt.CustomizeWindowHint) or widget.setWindowFlags(QtCore.Qt.FramelessWindowHint). These and other options are described in the Qt documentation (Qt Namespace).

The Qt Window Flags Example makes them easier to understand.

This problem looks similar to yours: Qt4 custom window frames like in office 2007?

See also: How can I hide/delete the "?" help button on the "title bar" of a QT Dialog?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜