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

Text rendering is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.2.4, 6.3.1
    • GUI: Text handling
    • None
    • Xcode 13.4.1, iOS 15.6, iPhone XR
    • iOS/tvOS/watchOS

    Description

      Text rendering in widgets is broken when running on iOS with Qt 6.2.4 and 6.3.1. On 5.15.5 there's no such issue. Tested in QPushButton and QLabel.

      Sample code:

      #include <QApplication>
      #include <QPushButton>
      #include <QVBoxLayout>
      #include <QWidget>
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      
      	QWidget w;
      	w.show();
      
      	QPushButton b{QStringLiteral("Quit"), &w};
      	QObject::connect(&b, &QPushButton::clicked, &a, &QCoreApplication::quit);
      
      	QPushButton b1{QStringLiteral("Dummy"), &w};
      	QVBoxLayout vbl{&w};
      	vbl.addWidget(&b);
      	vbl.addWidget(&b1);
      
      	return a.exec();
      }
      

      removing QStringLiteral or replacing it with QLatin1String has no effect.

      All my Qt versions are built with -no-freetype -no-harfbuzz.

      P.S. The visible keyboard is related to QTBUG-102544.

      Attachments

        1. 6.3.1.png
          6.3.1.png
          365 kB
        2. 5.15.5.png
          5.15.5.png
          63 kB

        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
              kambala Andrey Filipenkov
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes