While creating a PyQt5 app the window get opened and in task bar, automatically the app appears and when we close the app it get removed.
A taskbar is an element of a graphical user interface which has various purposes. It typically shows which programs are currently running. The specific design and layout of the taskbar varies between individual operating systems, but generally assumes the form of a strip located along one edge of the screen.
In this article we will see how to hide the app from the task bar, in order to do so we will use
setWindowFlag() method and pass which belongs to the
Syntax : setWindowFlag(QtCore.Qt.Tool)
Argument : It takes Window type as argument.
Action performed : It hides the app from the task 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.