Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59959

calling setFont multiple time causes Memory Leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P0: Blocker
    • None
    • 4.8.x
    • GUI: Font handling
    • None

    Description

      #define KANNADA_TTF "./MultiLang_fonts/NotoSansKannada-Bold.ttf"

      qApp->removeTranslator( &translator );
      int id = QFontDatabase::addApplicationFont( KANNADA_TTF ); // For other language will change ttf files
      QString family = QFontDatabase::applicationFontFamilies( id ).at( 0 );
      QFont newFont( family );
      qApp->setFont( newFont );
      translator.load( "Kannada.qm" , temp );
      qApp->installTranslator( &translator );

      Changing Font with the above lines as we change language in menu Causes memory leak.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            aravintharaj_rajendiran Aravintharaj R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes