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

Native window of QML FontDialog on Ubuntu 22.04 are blocking the UI while searching font

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • Quick: Dialogs
    • None
    • Ubuntu 22.04, Qt6.5.2,
    • Linux/X11

    Description

      While searching for a font in native FontDialog with one font selected, the dialog updates its selected font on each font between the current selected one and the first one matching the search pattern.

      During that, the ui is blocked and each change triggered an binding update on any property that uses the selectedFont from the dialog.

      In an application where  the selectedFont is used everywhere, the computer is dead for several minutes (as the application).

       

      In order to reproduce this behavior:

       

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Dialogs
      import QtQuick.Layouts
      Item {    
          anchors.fill: parent   
           FontDialog {
               id: dial
               onSelectedFontChanged: {
                  console.log("dial.font", dial.selectedFont.family)
              }
           }    
           RowLayout {        
                 Label {
                      font: dial.selectedFont
                       text: "Bonjour!!!"
                  }
                  Button {
                      text: "click"
                      onClicked: dial.open()
                  }
            }
      } 
      

       

      Attachments

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

        Activity

          People

            hurlevent Oliver Eftevaag
            obiwankennedy renaud.guezennec
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes