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

QLabel's text is not rendered properly for a LTR string in a RTL layout

    XMLWordPrintable

Details

    • Windows

    Description

      For a RTL layout, if a LTR string say "Fully LTR text..." is set to a QLabel and QPushButton, the output for both is different,

          QString ltrOnly("Fully LTR text...");
          ui->labelLTROnly->setText(ltrOnly); ---> Output is "Fully LTR text..."
          ui->pushLTROnly->setText(ltrOnly); ---> Output is "...Fully LTR text"
      

      I think QLabels are not behaving correct here, Please refer to the attached sample, it has another use case with a mixed string.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes