Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.7.1, 5.8.0
-
None
-
Visual Studio 2015, Windows 7 SP1
Description
Application crush in ~QApplication() on QFontCache clearing, when used QStringLitheral for font family name in dynamic library.
Steps :
1. Create widget with changed font family in dll( "Changed font" button in this example )
2. Destroy widget
3. Unload dll
4. Destroy QApplication
Button "Default font" calls create widget with default font family. No crash.
I often load / unload plugins for my application in work mode and I need unload all plugins before destroying of QApplication.
If widget created via QtDesigner uic.exe wrap font family name by QStringLiteral, then application will crush.
If I manually install font family without QStringLiteral, the application will finish correctly.
Attachments
Issue Links
- duplicates
-
QTBUG-46880 QFontCache crash when DLL is unloaded
- Closed