Bug 393107

Summary: Implicit loop warning on implicitHeight for TextFieldStyle.qml when changing width
Product: [Frameworks and Libraries] libplasma Reporter: Albert Astals Cid <aacid>
Component: componentsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.44.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Said file

Description Albert Astals Cid 2018-04-13 14:13:22 UTC
Created attachment 112003 [details]
Said file

With the attached file, when writing on the field i get
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/TextFieldStyle.qml:46:17: QML QQuickItem: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/TextFieldStyle.qml:46:17: QML QQuickItem: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/TextFieldStyle.qml:46:17: QML QQuickItem: Binding loop detected for property "implicitHeight"
file:///usr/lib/qt/qml/QtQuick/Controls/Styles/Plasma/TextFieldStyle.qml:46:17: QML QQuickItem: Binding loop detected for property "implicitHeight"

Which doesn't make any sense since i'm not changing the height.

Putting the code here for quick reading too

import QtQuick 2.6
import org.kde.plasma.components 2.0 as PlasmaComponents

Item {
    width: 800
    height: 600

    PlasmaComponents.TextField {
        width: text !== "" ? 500 : 250
    }
}
Comment 1 Nate Graham 2020-11-24 18:57:39 UTC
Looks to have been fixed now as the text case no longer produces a binding loop.