Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-10-01 Thread Peter Pykäläinen
Thank you all for your inputs. I think I finally nailed it :) // Peter Pykäläinen On 29 September 2014 14:21, Krisztian Olah wrote: > Just use a delegate like in the given example: > https://sailfishos.org/sailfish-silica/qml-sailfishsilica-slideshowview.html > If still baffled, you should rea

Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-29 Thread Krisztian Olah
Just use a delegate like in the given example: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-slideshowview.html If still baffled, you should read http://qt-project.org/doc/qt-4.8/qdeclarativemodels.html#listmodel On Mon Sep 29 2014 05:53:56 GMT+0100 (BST), Peter Pykäläinen wrote: > B

Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-29 Thread Peter Pykäläinen
Thanks, I'll check those out. // Peter Pykäläinen On 29 September 2014 11:13, Lukas Vogel wrote: > 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 > > impo

Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-29 Thread Lukas Vogel
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 als

Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-28 Thread Peter Pykäläinen
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 wrote: > Why not use a ListModel then? > > On 28 September 2014 18:44, Peter Pykäläinen > wrote: > >> Hi, >> >> anybody know how to populate SlideshowView's

Re: [SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-28 Thread Krisztian Olah
Why not use a ListModel then? On 28 September 2014 18:44, Peter Pykäläinen 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

[SailfishDevel] Dynamic VisualItemModel in SlideshowView

2014-09-28 Thread Peter Pykäläinen
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. //