[SailfishDevel] Dynamic VisualItemModel in SlideshowView

Lukas Vogel lukedirtwalkerdev at gmail.com
Mon Sep 29 08:13:57 UTC 2014


Hi,

In cutespotify there I use in full player view the album cover kind as in a
Slideshow:
https://github.com/lukedirtwalker/cutespotify/blob/sailfish/qml/FullControls.qml#L136

important properties are: snapMode:
http://qt-project.org/doc/qt-5/qml-qtquick-listview.html#snapMode-prop
and maybe also bondsBehavior.

Hope that helps.
Cheers,
Lukas

2014-09-29 4:53 GMT+00:00 Peter Pykäläinen <peter.pykalainen at gmail.com>:

> Because I need a slideshow.
> How can I do a slideshowview with ListModel?
>
>
> // Peter Pykäläinen
>
> On 28 September 2014 23:21, Krisztian Olah <fasza2mobile at gmail.com> wrote:
>
>> Why not use a ListModel then?
>>
>> On 28 September 2014 18:44, Peter Pykäläinen <peter.pykalainen at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> anybody know how to populate SlideshowView's VisualItemModel dynamically?
>>> I need to have 20 items in the VisualItemModel and I don't want to
>>> define them at init.
>>>
>>> Was thinking of a javascript which would add an item into the model, but
>>> apparently VisualItemModel does not have that option.
>>>
>>> // Peter Pykäläinen
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to
>>> devel-unsubscribe at lists.sailfishos.org
>>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-unsubscribe at lists.sailfishos.org
>>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140929/ded0246e/attachment.html>


More information about the Devel mailing list