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

Android style font processing vulnerability affecting QLCDNumber component text rendering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.6
    • Widgets: Styles
    • None
    • Android

          

      Description:
      The QAndroidStyle::sizeFromContents() function contains a "bad hack" that forces the use of QApplication::font() when a stylesheet is applied at the application level, even if the stylesheet does not refer to headers. This causes inconsistent font rendering and incorrect text sizing for header components.

      Steps to reproduce:
      1. Create a Qt application with QLCDNumber component
      2. Apply a stylesheet at the application level
      3. Observe inconsistent font rendering in header components

      Expected behavior:
      Header components should use their own font settings consistently

      Actual behavior:
      Header components are forced to use QApplication::font(), causing inconsistent rendering

      Impact:

      • Inconsistent UI rendering
      • Violation of proper font inheritance principles
      • Poor user experience
      • Code maintainability issues

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

            tpochep Timur Pocheptsov
            caimengci_uniontech mengci cai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes