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

QHeaderView::sectionSizeFromContents() return too wide QSize with Windows Vista style when sorting is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.7.2, 4.8.x, 5.0.0, 5.2.1
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Environment:
      Windows 7 x64, Qt 4.7.2.
    • Commits:
      f7af9fb63244b114653c157d3eef3e6c64f3196a

      Description

      Issue can be seen easily by creating QTreeView and enabling sorting. When using resizeColumnToContents() it leaves room for sort indicator on right side of the text, but sort indicator is actually on top of the text. When sorting is disabled this works fine.

        Attachments

        1. Untitled.png
          24 kB
          Mitch Curtis
        For Gerrit Dashboard: QTBUG-19915
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            timit Timi Tuohenmaa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes