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

Qt 5 regression, CSS font-family has no effect QWebView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.0.2
    • WebKit
    • Reproduced in openSUSE 12.3 and Ubuntu 12.10. Also reproduced with 5.1 alpha.

    Description

      The CSS font-family style apparently has no effect when using Qt5's WebKit widgets. It is always the default serif font, even if you set eg Sans Serif. I also tried with url('qrc:/path/to/font') and it didn't work either.

      This app demonstrates the problem https://bitbucket.org/imonroe/fontsizesync.git on tag fontfamilyissue. The same code doesn't have this issue in Qt 4.

      Workaround: use QWebSettings. It respects this setting.

      Attachments

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

        Activity

          People

            ntg Pierre Rossi
            ian.monroe Ian Monroe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes