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

Multi line labels slow without fontconfig enabled

    XMLWordPrintable

Details

    Description

      Steps to reproduce / test case
      ./configure -no-fontconfig -release -commercial -platform solaris-cc-64

      Test app:

      #include <QtGui> 
      #include <QTimer> 
      
      int main(int argc, char* argv[]) 
      { 
      QApplication app(argc, argv); 
      QLabel* l; 
      if(argc>1) { 
      l = new QLabel("This is a test with \n the newline char "); 
      } 
      else { 
      l = new QLabel("This is a test without the newline char "); 
      } 
      l->show(); 
      //QTimer::singleShot(0, &app, SLOT(quit())); 
      return app.exec(); 
      } 
      

      More information
      The single line label appears immediately, the multi line version use about 8 seconds to appear. The commented out QTimer statement was used be able to use a performance tool to see where time was spent. Picture from the performace tool attached.

      This is only an issue if configure option -no-fontconfig is used.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes