<div dir="ltr"><div>Hi Andrey,</div><div>Thanks for the suggestion, though having them as Components in the same file instead of external qml files does improve performance it is still a lot slower then just having the component directly in use without a Loader.</div><div><br></div><div>ie:</div><div><br></div><div>ListItem {</div><div>    (...)</div><div>    ArtArea {</div><div>    }</div><div>}<br></div><div><br></div><div>Of course like that there is no logic to have either ArtArea or CoverArea but I can have logic in each ArtArea as to which image it is displaying so image loading an logic speed are not the issue but rather just the loader (I can have 400+ length lists where you really see the slowdown).</div><div><br></div><div>Any other suggestions?</div><div>Thanks!</div><div>Eli<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 7 apr. 2020 om 01:15 schreef Андрей Кожевников <<a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">wrap inside Component and set using sourceComponent property<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 7 апр. 2020 г. в 01:13, E.S. Rosenberg <<a href="mailto:es.rosenberg%2Bsailfishos.org@gmail.com" target="_blank">es.rosenberg+sailfishos.org@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div>In the application I maintain (gPodder) I would like to show an element holding Image(s) in each ListItem, depending on whether or not the ListItem has a property either a component with 2 images or a component with 1 image should be loaded (an possibly also a no image fallback).</div><div><br></div><div>I have tried implementing this using a Loader:</div><div>    Loader {<br>        id: artArea<br>        anchors {<br>            left: parent.left<br>        }<br>        height: titleItem.height + subtitleItem.height<br>        width: titleItem.height + subtitleItem.height<br><br>        asynchronous: true<br>        source: episode_art ? "ArtArea.qml" : "CoverArea.qml"<br>    }</div><div><br></div><div>However this totally tanks performance, using just "ArtArea" without the loader is really fast thus the issue is not the amount of images that need to be loaded.</div><div>Is there a better/faster way to do this?</div><div><br></div><div>Thanks!</div><div>Eli<br></div></div>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>