[maemo-developers] QMainWindow crashes when it closes while the menu is visible

From: ibrahim ibrahim.ali at asgatech.com
Date: Wed Feb 24 19:10:14 EET 2010
Greetings;

I have a little bit strange crash that occurs in my Qt application. I 
have a QMainWindow Object that has a QMediaObject object inside it to 
play sound. When the sound player finishes, the QMainWindow sends a 
signal to its parent, so the parent can close it (programatically, by 
calling window->close(); and my QMainWindow is set to DeleteOnClose).
Everything works fine with no problems at all. But when I view the menu 
in that window, and it closes (when sound player returns), the 
application crashes !!!!
I don't know what is wrong with that issue. why does it crash when the 
menu is shown?
and how to avoid that issue ?? is there's a way to detect the open 
menubar and close it programatically before  destroying the application ???

any assistance is higly appreciated;
thanks in advance;
More information about the maemo-developers mailing list