Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQT Remove the programs Title Bar?

Tags:

pyqt

pyqt4

hi does anybody knows how to remove the programs title bar? (In PyQT or in Designer) my goal is i need to replace it with my own title bar.

thanks to anyone who can help me.

like image 914
Katherina Avatar asked Aug 11 '11 06:08

Katherina


1 Answers

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?

like image 192
phobie Avatar answered Sep 27 '22 18:09

phobie