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

QHeaderView sort indicator and text overlap if both aligned right

XMLWordPrintable

    • Windows
    • 308845cd720969a5f3456caa8cf72023f120aecf (qt/qtbase/dev) 0f6a9fdc2f1a20d590e51bbc3eee93c2ffeb1850 (qt/qtbase/6.2)

      Sort indicator isn't taken into account when painting text for a QHeaderView section when QHeaderView::setDefaultAlignment(Qt::AlignRight) and stylesheet positions sort indicator on the right side of the text. As a result the sort indicator and text overlap.

      Steps to reproduce the issue:

      • Run the attached example & observe the table view header

        1. qtbug84117.PNG
          4 kB
          Miika Pernu
        2. qtbug84117.zip
          1 kB
          Miika Pernu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vhilshei Volker Hilsheimer
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes