Bug 486652

Summary: ToolBarLayout shows all actions as they are loaded before collapsing them
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Devin Lin <espidev>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: justin, nate, notmart, plata.hill
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: Not decided   
Platform: postmarketOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video of the bug occurring

Description Devin Lin 2024-05-06 00:11:16 UTC
SUMMARY
As actions are loaded into ToolBarLayout, they show up fully in the toolbar before being collapsed into the overflow menu. This is particularly pronounced on slower mobile devices.

STEPS TO REPRODUCE
1. Load an app/page with actions in the header (ex. qmlkonsole)

OBSERVED RESULT
The actions flicker as they are loaded in, and then hidden into the collapsed menu

EXPECTED RESULT
Actions in the collapsed menu aren't show at all in the toolbar.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: postmarketOS
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1
Qt Version: 6.6.0
Comment 1 Devin Lin 2024-08-01 03:28:32 UTC
Note that this doesn't seem to occur with qqc2-desktop-style, it happens specifically with the default Qt Quick themes as well as qqc2-breeze-style.

A good app example with a lot of actions is qmlkonsole, try launching it with "QT_QUICK_CONTROLS_STYLE=org.kde.breeze qmlkonsole"
Comment 2 Devin Lin 2024-08-01 03:31:02 UTC
Created attachment 172169 [details]
Video of the bug occurring

It is much more pronounced on phones as they are much slower
Comment 3 ratijas 2024-08-07 10:44:12 UTC
This pretty much happens with any style. Just look at the Kirigami Gallery.