Bug 472344

Summary: bits view is painted improperly until window resized
Product: [Applications] kcalc Reporter: Nick Korotysh <tevute56>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: minor CC: gabriel.barrantes.dev
Priority: NOR    
Version: 23.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: bits view is painted improperly
possible fix

Description Nick Korotysh 2023-07-18 06:23:26 UTC
Created attachment 160347 [details]
bits view is painted improperly

SUMMARY
content of bits view looks truncated on app startup (see attached screenshot), window resize fixes it

STEPS TO REPRODUCE
1. open application in "Simple Mode" (default)
2. switch to "Numerical System Mode"
3. close the application
4. open application again

OBSERVED RESULT
content of bits view is truncated on the right side

EXPECTED RESULT
bits view should be painted correctly, as after switching modes

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux/X11
KDE Plasma Version:  5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
seems that problem in custom button implementation used in this view - it doesn't provide sizeHint() on which QLayout relies on. possible fix is attached.
Comment 1 Nick Korotysh 2023-07-18 06:28:06 UTC
Created attachment 160348 [details]
possible fix
Comment 2 Gabriel Barrantes 2024-09-07 22:55:04 UTC
Not quite the same issue but the fix would be the same.

*** This bug has been marked as a duplicate of bug 453775 ***