Bug 443527

Summary: Tag editor window and the whole gwenview window becomes with huge width when there are tags with big length
Product: [Applications] gwenview Reporter: PhobosK <phobosk>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: idontfeelcomfygivingyoumyemail
Priority: NOR    
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description PhobosK 2021-10-09 22:26:24 UTC
SUMMARY
Turns out the width of the tag editor window and the whole gwenview depend on the maximal length of the existing tags that are autocompleted from the combo box pull down menu.
Thus when there is a tag with for example 400 chars (this is a real, valid case, produced for example in digikam with 20 levels subtags that are written as tag1/tag2/tag3/tagX etc by digikam), the editor window's width becomes huge and goes outside the screen. 
At the same time the whole gwenview window becomes distorted if in View->Information mode and goes beyond screen also. Additionally these widths cannot be manually controlled after they become huge.


STEPS TO REPRODUCE
1. Choose a picture and open it in gwenview
2. Go to View->Information mode
3. Open Tag editor and create and assign a tag with at least 400 chars -> leads to whole gwenview window width to go beyond screen and the information panel to be distorted
4. Close the tag editor and gwenview
5. Open gwenview and choose another picture that has not this tag assigned.
5. Open tag editor -> it is with huge and uncontrollable width

OBSERVED RESULT
1. Huge window widths of gwenview and the tag editor.
2. The widths of these windows cannot be made smaller manually

EXPECTED RESULT
1. Windows widths of the application and the tag editor to not depend on the length of the tags
2. The affected windows to be able to be manually made smaller

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.22.5
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
The xcb windowing system
Comment 1 A Linux User 2025-08-21 00:14:07 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0?
Comment 2 PhobosK 2025-08-21 01:11:51 UTC
(In reply to A Linux User from comment #1)
> Thank you for the bug report. Unfortunately we were not able to get to it
> yet. Can we ask you to please check if this is still an issue with Gwenview
> 25.08.0?

Yes, I confirm that this issue is still valid in 25.08.0 for the Gwenview window.
The problem with the tag editor window seems to be fixed. Now it doesn't get big.
But the Gwenview window becomes uncontrollable and very big.
Thanks.
Comment 3 A Linux User 2025-08-21 13:53:55 UTC
Can reproduce, for me it even crashed.