Bug 493967

Summary: Bit editor is partially invisible after program start
Product: [Applications] kcalc Reporter: Ingo van Lil <inguin>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version: 24.08.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot with partially invisible bit editor
Screenshot with good layout (after switching modes)

Description Ingo van Lil 2024-10-02 13:37:58 UTC
Created attachment 174316 [details]
Screenshot with partially invisible bit editor

SUMMARY

The bit editor in Numeral System Mode isn't fully visible right after program start. The rightmost checkboxes (bits 0 and 32) are invisible, along with their labels. This caused me a few moments of confusion.

The behavior varies with the stored window size, but I can reproduce it with the default initial size (640x480 pixes, 200% UI scale for HDPI display).

Switching to a different mode or resizing the window fixes the layout.

STEPS TO REPRODUCE
1. Switch to Numeral System Mode
2. Enable the bit editor
3. Restart the program

OBSERVED RESULT
- Right-most bit checkboxes and their labels aren't visible (see "bad" screenshot).

EXPECTED RESULT
- Bit editor should be fully visible (see "good" screenshot).

SOFTWARE/OS VERSIONS
- OS: Fedora Linux 40
- Desktop: Cinnamon 6.2.9, 200% UI scaling
- QT 4.8.7
- kcalc 24.08.0
Comment 1 Ingo van Lil 2024-10-02 13:38:27 UTC
Created attachment 174317 [details]
Screenshot with good layout (after switching modes)
Comment 2 Gabriel Barrantes 2024-10-02 23:25:13 UTC
(In reply to Ingo van Lil from comment #1)
> Created attachment 174317 [details]
> Screenshot with good layout (after switching modes)

Yes, this component needs a complete refactor, it will happen at some point.
https://invent.kde.org/utilities/kcalc/-/issues/25

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