Bug 483859

Summary: plasmashell[1454]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:196:25: QML FolderViewDropArea (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumWidth"│
Product: [Plasma] plasmashell Reporter: Ivan Stankovic <istankovic>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: hein, kde, nate, qydwhotmail
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ivan Stankovic 2024-03-17 18:46:00 UTC
SUMMARY
I get the following warning:

plasmashell[1454]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:196:25: QML FolderViewDropArea (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumWidth"│


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 cwo 2025-03-12 19:15:50 UTC
Git commit f8085d49c438d771b1218cc8a4742c80752f398a by Christoph Wolk.
Committed on 12/03/2025 at 18:53.
Pushed by cwo into branch 'master'.

containments/desktop: resolve binding loop

The assignment of minimum and preferred sizes on the FolderView has
binding loops, which result from intermediate values as the other
bindings are filled.

This change resolves these loops by setting the bindings using
Qt.callLater(); when the main loop is clear and the other bindings have
settled, the proper sizes can be determined without causing loops.

M  +12   -6    containments/desktop/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/f8085d49c438d771b1218cc8a4742c80752f398a