Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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 :

https://doc.qt.io/qt-5/qwidget.html#showMinimized

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading