From 734b856a7c4e543027bb843796b936586d2c10a8 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Thu, 25 Nov 2021 13:07:18 +0000 Subject: [PATCH] Fix TopicEcho plugin message display - Change binding of width property in delegate (see: https://stackoverflow.com/questions/63767669/parent-is-null-in-listview-delegate-after-upgrade-to-qt-5-15) - Use scoped reference to model.display (see: https://forum.qt.io/topic/92085/using-qstringlistmodel-as-model-in-listview) Signed-off-by: Rhys Mainwaring --- src/plugins/topic_echo/TopicEcho.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/topic_echo/TopicEcho.qml b/src/plugins/topic_echo/TopicEcho.qml index e1b91543c..aef2cd3a5 100644 --- a/src/plugins/topic_echo/TopicEcho.qml +++ b/src/plugins/topic_echo/TopicEcho.qml @@ -97,8 +97,8 @@ Rectangle { currentIndex: -1 delegate: ItemDelegate { - width: parent.width - text: display + width: listView.width + text: model.display } model: TopicEchoMsgList