PyQt4 how to do if the window is minimized, call a method expand that window
please tell me how to do it
I will be very grateful
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check the current state of a
QWidgetby calling itswindowState()method. To change the state you pass a new state tosetWindowState().Here’s an example app that checks every 5 seconds to see if it’s minimised. If it is then the window is restored.
This is just as an example – checking every 5 seconds for a minimised window and restoring it would be an evil thing to do in an app ;).