Close secondary window by escape through keyPressEvent function
Unsolved
Qt for Python
-
I have main window which contain another window..When call keyPressEvent function for escape key it works for main window which close by self.close().. How can I do escape button do it for secondary window as well? Whether it is possible in same function whenever secondary window (qwidget) is shown or enabled it also close on escape button .. For 2 times press it closes main window as well.. I hope you understand my problem.. Kindly give me some solid solution for it..
-
Hi,
Something is not clear: did you implement the same thing for your secondary window as you did for your main window ?