Is it possible to detect that whether any modal dialog box is
open over main window? If yes then how?
I am using Qt, Mac, Carbon.
Thanks
Rahul
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.
GetFrontWindowOfClass( kModalWindowClass, true ); should give you the answer you are looking for.
Unless something strange (i.e. buggy) is going on, a modal windows, by definition, will be higher then the main window.