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

QPushButton with RightToLeft layoutDirection and an icon crops text in Fusion style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.2, 6.7.0 FF
    • 5.9.2
    • Widgets: Styles
    • None
    • Windows 10, Qt Designer.
    • b03557287 (dev), 9c84620d4 (6.6)

    Description

      I want my button icon to be on the right instead of the left. I create a QPushButton, give it an icon, then set the layoutDirection to RightToLeft.

      The editor shows the text left aligned, which seems wrong, but I can't say for certain that it's a defect.

      I preview in Fusion style. The button text is now so far to the left that it is cropped.

      Attachments

        1. CroppedText.png
          CroppedText.png
          84 kB
        2. lock.png
          lock.png
          35 kB
        3. main.cpp
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            noah Noah Hamerslough
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes