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

QWidget::show() invalidates font inheritance under certain circumstances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.0
    • GUI: Font handling
    • None
    • Tested Qt versions:
      Linux (x86, 32bit): Qt 5.10.0, Qt 4.8.7
      Windows (7, 64bit): Qt 5.2.1, Qt 4.8.5 (can't upgrade)

      I noticed several issues with the fonts in my application(s) and finally tracked this down to the attached example code (after a long time !).
      It looks like font inheritance gets broken by QWidget->show() under at least the following circumstances:

      • application font set
      • gui style set
      • QWidget::show() called late

      The attached example should be self-explaining and a good starting point.
      I also assume that at least two bugs are involved (see comments).

      Seems to occure on Linux + Qt5 only, Windows + Qt5 works fine and Qt4 also works fine on both platforms.

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

            esabraha Eskil Abrahamsen Blomfeldt
            comer352l comer352l
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes