Results 1 to 2 of 2

Thread: QFontDatabase::removeAllApplicationFonts crash

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QFontDatabase::removeAllApplicationFonts crash

    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?

  2. #2
    Join Date
    Feb 2011
    Location
    Romania
    Posts
    53
    Thanks
    1
    Thanked 11 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFontDatabase::removeAllApplicationFonts crash

    I tried QFontDatabase::removeApplicationFont(id) after application event loop, and it works normally. (e.g. after QApplication::exec)

Similar Threads

  1. QFontDatabase:Cannot find font directory
    By soumya in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 10th November 2014, 06:08
  2. Replies: 5
    Last Post: 20th June 2012, 23:40
  3. Replies: 4
    Last Post: 23rd November 2010, 17:15
  4. QFontDatabase loading font from resource
    By myrky in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2010, 12:50
  5. QFontDatabase::pointSizes question / bug
    By giotto in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2008, 01:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.