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

QFont::setStretch ignored after calling QFont::setStyleName

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.4
    • Fix Version/s: None
    • Component/s: GUI: Text handling
    • Labels:
      None
    • Environment:
      Fedora 29
    • Platform/s:
      Linux/X11

      Description

      QFont::setStretch is ignored and has no effect following any call to QFont::setStyleString.

       

      Eg..

        QLabel *l = new QLabel();
        QFont f;
        f.setFamily( "Serif" );
        f.setStyleName( "Bold" );
        f.setStretch( 400 );
        l->setFont( f );
        l->setText( "test" );
        l->show();
      

      Will ignore the stretch setting, while commenting out the "setStyleName" call will correctly show the stretched text.

        Attachments

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

          Activity

            People

            • Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              ndawson Nyall Dawson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes