How to temporarily hide the main window PyQt5?

I have removed the title of the main window.

Created a button that should hide the window, but not close it. How can I implement a similar function for her?

P.S. Just please help me do it without OOP, I’m very bad at it.

>Solution :

I guess you want something to minimize application

like this button :

enter image description here

To minimize your application you should call showMinimized(); function.

look at this Qt Documentation link :

Leave a Reply