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

Text rendering is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical 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

      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.

        1. 6.3.1.png
          6.3.1.png
          365 kB
        2. 5.15.5.png
          5.15.5.png
          63 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            kambala Andrey Filipenkov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes