PyQT Uninstall Title Bar?

Hi, does anyone know how to remove the program title bar? (In PyQT or in Designer) my goal is I need to replace it with my own title bar.

thanks to everyone who can help me.

+6
source share
1 answer

The title bar is controlled by the window manager, not the application. Therefore, you cannot change the title bar using Qt Designer.

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

An example of Qt window flags makes them easier to understand.

This problem is similar to yours: Qt4 custom windows, for example, in Office 2007?

See also: How to hide / remove "?" help in the title bar of the QT dialog?

+11
source

Source: https://habr.com/ru/post/894789/


All Articles