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

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

XMLWordPrintable

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

      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.

        1. testtree.zip
          4 kB
        2. ok.jpg
          ok.jpg
          51 kB
        3. bad.jpg
          bad.jpg
          56 kB
        4. QTBUG-29232.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes