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

StyleSheet in QHeaderView Chops off first letter

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When we apply a CSS style on the QHeaderView, in order to position the sort arrow over the text itself, we see that in Qt5 it works correctly, but in Qt6.5.5 this does not work correct. First letter of Headerview cuts off. 

      Attach image and an example application where this can be verified. In the image, you can see how in the window on the left (Qt 5.15.2) the sort arrow is perfectly placed over the header text, but in the window on the right (Qt 6.5.5) the position of the arrow is correct, but it conditions the position of the header text, causing it to be displayed incorrectly.

      Run the example and click on header view to see the behavior.

      Attachments

        1. qtbug132882.tar.gz
          1 kB
          Irfan Omair
        2. test_qheaderview_arrow_css.png
          87 kB
          Irfan Omair

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              irfan.omair@digia.com Irfan Omair
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes