<p dir="ltr">1. Why TextArea? Why not ListView + ListModel.<br>
2. TextArea have own scroller, you dont need Flickable. Just try to use cursorPosition property or avoid using TextArea.</p>
<div class="gmail_quote">02.01.2015 9:59 пользователь "Dirk Zimmermann" <<a href="mailto:me%2Bsailfishos@dirkz.com">me+sailfishos@dirkz.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I was trying to use a TextArea as a UI-visible debug log, so I can see<br>
connection error details while I'm out using my app. The basic principle<br>
is that the python code (pyotherside) will make a server request and<br>
send detailed answers to the text area, which displays them. Everything<br>
works find, except the text area doesn't auto scroll to the end when<br>
there is more content than fits on the page. autoScrollenabled seems to<br>
mean something entirely different, selectionStart start seems to be<br>
read-only. I have put up an example that demonstrates, at the end of the<br>
mail.<br>
<br>
Does anyone know of the magic incantations needed to make sure the<br>
latest lines are always visible?<br>
<br>
import QtQuick 2.0<br>
import Sailfish.Silica 1.0<br>
<br>
Page {<br>
    id: textAreaLogExample<br>
<br>
    SilicaFlickable {<br>
        TextArea {<br>
            id: textAreaLog<br>
            readOnly: true<br>
            text: "Test"<br>
            autoScrollEnabled: true<br>
        }<br>
    }<br>
<br>
    Timer {<br>
        interval: 500; running: true; repeat: true<br>
        onTriggered: {<br>
            textAreaLog.text += "\n" + new Date().getUTCSeconds() + " Log"<br>
        }<br>
    }<br>
}<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</blockquote></div>