PDA

View Full Version : QFontDatabase::removeAllApplicationFonts crash



roxton
9th June 2011, 11:07
Hello!
I have some problem when calling QFontDatabase::removeAllApplicationFonts() from the closeEvent of the main window or from the main window's destructor. The program just crashed. I've tried also QFontDatabase::removeApplicationFont (id) with the same unpleasant result.
Is there any way to deal with that?
Is necessary to call to call removeAllApplicationFonts(), or my custom-loaded fonts will be removed automatically on application exit and there is no need to remove them manually?

cincirin
9th June 2011, 11:54
I tried QFontDatabase::removeApplicationFont(id) after application event loop, and it works normally. (e.g. after QApplication::exec)