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

After setting a font with QApplication::setFont QWizard title is cropped on Windows 8.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.x, 5.4.0
    • Fix Version/s: 5.5.0
    • Labels:
      None
    • Environment:
      Windows 8.1 Pro 64-bit
    • Commits:
      0a7fcfd61263bc156b780c5e48656c00c64721ed (qtbase/5.5, 29.5.2015)

      Description

      Set a font after application start (even without change, just the same, as QApplication returns):

      const QFont f = QApplication::font();
      QApplication::setFont( f );

      Each QWizard will then have cropped title, not depending on it's length, looks like a wrong font size is taken for width calculation.

      Attached screenshots and a sample project which reproduces this problem.

        Attachments

        1. qtbug46360_diag.diff
          2 kB
        2. qtbug46360_log.txt
          1.0 kB
        3. qtbug46360.jpg
          qtbug46360.jpg
          64 kB
        4. qtbug46360.zip
          2 kB
        5. qwizard_win_title_broken.png
          qwizard_win_title_broken.png
          6 kB
        6. qwizard_win_title_good.png
          qwizard_win_title_good.png
          7 kB
        7. WIZARD_BUG.zip
          0.8 kB
        For Gerrit Dashboard: QTBUG-46360
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            sergey_pashkov Sergey Pashkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes