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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes