View Full Version : How to check if a qwidget is closed ?

31st October 2011, 02:26
I have a parent widget A and a child widget B, and the user has the capability to open and close widget B from widget A. How can I check is widget B is closed ?

I show widget B using the show command.

One of the things i am thinking to do is passing a variable to the constructor of widget B then update its value in the CloseEvent, but i am pretty sure there is an easier way.

Many thanks in advance,

31st October 2011, 05:46
Have you tried QWidget::visible()?