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

Font Antialias

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.14.0
    • GUI: Font handling
    • None
    • Windows
    • Windows

      Set Qt stylesheet for QLable.

      QWidget{
          font-size:40px;
          font-family:"Microsoft YaHei";
      
      }
      
      	QFont f = QApplication::font();
              f.setFamily("Microsoft YaHei");
      	f.setStyleStrategy(QFont::PreferAntialias);
      	QApplication::setFont(f);
      

      Running in Qt5.13.2 and Qt5.14.0 get different displays.
      The same UI file runs in different versions get different displays.
      Antialias doesn't seem to work

        1. Qt_5.13.2.png
          2 kB
          mainjzb
        2. Qt_5.14.0.png
          2 kB
          mainjzb
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes