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

Creating a QFont instance, not passing a font family name, before QApplication is created may cause font metrics to be wrong

    XMLWordPrintable

Details

    Description

      Creating a QFont instance, not passing a font family, before QApplication is created may cause font metrics to be wrong, i.e.

      int main(int argc, char** argv)

      { QFont foo; QApplication qapp(argc, argv); // ... return qapp.exec(); }

      This will in some cases cause text to exceed the boundaries of it's widget, becoming clipped.

      This does not happen if a family name is passed to the QFont instance, such as

      QFont foo("foo");

      The actual family name used doesn't seem to matter here, it can even be an non-existant one.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes