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

calling setFont multiple time causes Memory Leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Out of scope
    • Affects Version/s: 4.8.x
    • Fix Version/s: None
    • Component/s: GUI: Font handling
    • Labels:
      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

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            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