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

QFontDialog::getFont(...) always returns default font

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.11.1
    • GUI: Font handling
    • None
    • macOS

    Description

      When using QFontDialog::getFont(...), the inital font passed as the second parameter will always be returned, regardless of the font the user picked.

      This affects my Macbook Pro (running Mac OSX 10.13.6). It affects 5.11.1 only, 5.11.0 and 5.10.0 work correctly.

       

      Attached is an application that demonstrates this behavior.

      Upon building running the application, there is a button to bring up a font picker to change the font of the textbox. Chose any font, and hit okay. The application will log to the console the initial font passed to the font picker, and will log the font returned by the picker.

       

      In 5.11.1, regardless of the font picked, the initial and returned fonts will always be the same.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              mmcraven Matthew McRaven
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes