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

QFontComboBox setFontFilters updates content but not the number of items in the list.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.4, 4.8.0, 4.8.1
    • None

      The number of list items is not updated, when setFontFilers() is used and the widget is visible.

      Example 1:
      1. Create and display QFontComboBox with QFontComboBox::MonospacedFonts
      2. setFontFilters(QFontComboBox::AllFonts):
      -> only the the first few fonts are shown. The number is limited to the number of MonospacedFonts.
      (see attachment left: note that the scrollbar is at the bottom, but only fonts up to B.. are shown.)

      Example 2:
      1. Create and display QFontComboBox with QFontComboBox::AllFonts
      2. setFontFilters(QFontComboBox::MonospacedFonts):
      -> only the monospaced fonts are displayed, but there are a lot of empty entries at the end of the list.
      (see attachment right: note the scrollbar position)

        1. QTBUG-25818-v3.zip
          3 kB
        2. QTBUG-25818-v2.zip
          3 kB
        3. QTBUG-25818.zip
          2 kB
        4. qfontcombobox.png
          qfontcombobox.png
          15 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            thoffmann Tim Hoffmann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes