-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.6
-
None
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