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

QFontDialog will not work when font in stylesheet is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.4.0 RC, 5.4.0
    • 5.3.1, 5.5.0
    • None
    • Tested on Windows. Not tested on OS X with native dialog.
    • 929509ea03b116588bdae38391377ec1ec976845

      Set such stylesheet to QFontDialog or it's parent:

      • {
        font-family: "Calibri";
        font-size: 18px;
        }

      Fonts and sizes may be different.

      Run the program and try to get font using QFontDialog... it will return font set in stylesheet anyway.

      And then go to qfontdialog.cpp line 840 (just got it from Github):
      return d->sampleEdit->font();

      It is result of "QFont QFontDialog::currentFont()".

      Please, change it to something more working...

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

            ntg Pierre Rossi
            sanja1989 Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes