Bug 494420 - Dialog: Binding loops for properties "calculatedImplicitHeight" and "value"
Summary: Dialog: Binding loops for properties "calculatedImplicitHeight" and "value"
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.7.0
Platform: Other Linux
: NOR minor
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
: 500343 500383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-10-10 12:32 UTC by postix
Modified: 2025-02-24 12:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.12
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2024-10-10 12:32:44 UTC
SUMMARY

```
systemsettings: qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitWidth":
                                               qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:358:9
systemsettings: qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitWidth":
                                               qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:358:9
systemsettings: qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:344:18: QML ScrollView: Binding loop detected for property "calculatedImplicitHeight":
                                               qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:361:9
systemsettings: qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:401:33: QML Binding: Binding loop detected for property "value":
                                               qrc:/qt/qml/org/kde/kirigami/dialogs/Dialog.qml:409:13
```

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241007
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-02-18 20:27:39 UTC
*** Bug 500343 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2025-02-19 20:24:27 UTC
*** Bug 500383 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2025-02-22 22:21:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1728
Comment 4 Nate Graham 2025-02-24 12:58:24 UTC
Git commit 8ceb7d2ece0d5f8d4a7022c6d5e8265001a29408 by Nate Graham.
Committed on 24/02/2025 at 12:58.
Pushed by ngraham into branch 'master'.

Dialog: fix width and height binding loops

We're doing a complicated calculation to get the implicit widths and
heights of child items, but this is unnecessary because Qt provides
properties we can use for the same purposes. Let's use them.

Tested every Dialog implementation in System Settings, Info Center,
System Monitor, Discover, NeoChat, and Elisa. I found no regressions
with sizing or visual display in any of them, and the binding loop
warning is now gone.
FIXED-IN: 6.12

cc @mart @carlschwan @nicolasfella

M  +2    -2    src/dialogs/Dialog.qml

https://invent.kde.org/frameworks/kirigami/-/commit/8ceb7d2ece0d5f8d4a7022c6d5e8265001a29408