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

QFontInfo::styleName() does not return actual style name of font

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.0 RC1
    • GUI: Font handling
    • None
    • Mac OS X 10.9
    • macOS

    Description

      QFontInfo is supposed to return the actual font resolved for a QFont request, but doing e.g.:

      QFont font("American Typewriter");
      font.setStyleName("foobar");
      qDebug() << QFontInfo(font).styleName();
      

      Will print out "foobar", so it just returns whatever you put into QFont in the first place, which is not helpful.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes