Re: [Qt-qml] QML and binding loop problem

2010-11-17 Thread michael.brasser
Hi, It's probably easiest to look at a simplified example: Rectangle { id: rect function myWidth() { return rect.width } height: myWidth() } When the engine analyses the binding for height (i.e. myWidth()), it keeps track of the fact that rect.width was used in the bind

[Qt-qml] QML and binding loop problem

2010-11-16 Thread Valentine Silvansky
Hi all! I've got some problem... I have to make a elide for multiline text. Here is the code I wrote: Text { id: tempText visible: false width: parent.width wrapMode: Text.WordWrap function elideMultiline(etext, pointSize, linesCount) { con