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

Font size change when resize QTreeView/QTreeWidget with stylesheet on QApplication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 4.7.4, 4.8.4, 5.0.1
    • Widgets: Itemviews
    • None
    • windows seven 32/64

    Description

      When you set a stylesheet on QApplication, the behavior of QTreeView/QTreeWidget change.

      Without a stylesheet, when you resize a Tree, Qt add "..." to elide text and the font stay the same.

      With a stylesheet on QApplication the font size change when resizing the Tree.

      You have a small easy example on attachment, but this is really ugly on software with CSS on it.

      Attachments

        1. bad.jpg
          bad.jpg
          56 kB
        2. ok.jpg
          ok.jpg
          51 kB
        3. QTBUG-29232.zip
          2 kB
        4. testtree.zip
          4 kB

        Issue Links

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

          Activity

            People

              stephen.kelly Stephen Kelly (Unused account) (Inactive)
              dickymoe dickymoe
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes