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

QTreeWidget section resize mode not considered when using style sheet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.2
    • Widgets: Style Sheets
    • None

    Description

      When using styled QTreeWidget the section resize mode QHeaderView::ResizeToContents is not considered.
      Attached you find a ZIP with a small test program including a style sheet file.
      1.) Start uistylesheet.exe without any parameter
      This will display the standard QtTreeWidget (s. attached QTreeWidget_sectionsize.jpg )
      2.) Start uistylesheet.exe with parameter -styled from command line (s. attached QTreeWidget_sectionsize_styled.jpg )
      This will automatically load the style sheet file UiTest_QTreeWidget.stylesheet and will display the adjusted QTreeWidget with not considering the section resize mode.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ckrieg Christina Krieg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes