PyQt5 – How to hide the title bar of window ?
When we design the GUI (Graphical User Interface) application using PyQt5, there exist the window. A window is a (usually) rectangular portion of the display on a computer monitor that presents its contents (e.g., the contents of a directory, a text file or an image) seemingly independently of the rest of the screen. Windows are one of the elements that comprise a graphical user interface (GUI).
In a window we can see there exist a title bar which comprises the icon and title on the left size and on the right side there exist control button.
In this article we will see how we can hide title bar. In order to do so we will use
setWindowFlag() method and pass which belongs to the
Syntax : setWindowFlag(Qt.FramelessWindowHint)
Argument : It takes Window type as argument.
Action performed : It removes the title bar.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course