<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">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>