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

QFontDialog: currentFont() doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.3, 5.9.6
    • None
    • macOS 10.13.5
    • macOS

    Description

      currentFont() is not updated correctly when the user changes the font in QFontDialog.

      Reproduction:
      1. start the attached program on Mac
      2. change the font, e.g. to "Tahoma"
      3. see the debug log:
      "currentFont() should be: Tahoma ..."
      "but is: Arial ..."

      I can reproduce this with Qt 5.9.3 and Qt 5.9.6 on macOS 10.13.5, but NOT on Win. With Qt 5.6.2, it is all right on Mac.

      The missing update seems to occur only when the QFontDialog constructor with initial font is used. When the empty constructor QFontDialog() is used (see alternative code in the example), it works as expected.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            chriskatze Christian Schauss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes