Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.2
-
None
-
Ubuntu 22.04, Qt6.5.2,
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() } } }