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

Can't set initial font for non-native QFontDialog

    XMLWordPrintable

Details

    • macOS

    Description

      The second argument to QFontDialog::getFont() should set the initially selected font when the dialog opens. But for the non-native QFontDialog, it has no effect.

      The problem can be reproduced by running the Standard Dialogs example (qtbase/examples/widgets/dialogs/standarddialogs) on Mac OS X. Check the "Do not use native dialog" checkbox, select a font other than the default, click OK, and re-open the dialog. The font is back to the default — incorrect. If you then uncheck the "Do not use native dialog" checkbox and re-open the dialog, the initial font is correctly set.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            jlstrecker Jaymie Strecker
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes