Re: [Qt-qml] Views and models

2010-08-10 Thread Cornelius Hald
Hi Bea, thanks a lot for your help. With the code you provided, I managed to adapt my code to solve the problem. Having a ListView inside a ListView when only really using one ListView is a bit counter intuitive at first, but maybe I just need to adjust to the QML way :) Anyways, I'm looking forw

Re: [Qt-qml] Views and models

2010-08-09 Thread bea.lam
Hi Cornelius, On 07/08/2010, at 1:14 AM, ext Cornelius Hald wrote: > [...] > > So far, so good. I will get all sides from my first slide show. But how > can I, for example, access the element of ? And how > can I access the other slide shows? > > I would like to have a list, where each elemen

Re: [Qt-qml] Views and models

2010-08-06 Thread Cornelius Hald
Hi again and sorry for all the spam :) I´ve now managed to use XmlListModel with ListView to implement some parts of my slide show, but somehow I think I now could use a XmlTreeModel or something. Let´s say the XML looks like this: My First slide show http://exampl

Re: [Qt-qml] Views and models

2010-08-06 Thread Cornelius Hald
Please forget my earlier post. I was just tired and confused. After taking a short break it was clear that this scenario can be solved using ListView and ListModel. At least if it is ok that the slides are sliding in and out... Which brings me to a follow up question: Is it possible to change t

[Qt-qml] Views and models

2010-08-06 Thread Cornelius Hald
Hi, I´m new to QML and Qt, so please excuse my beginner questions. To get acquainted with QML I´m trying to do a small multi-media slide show thing. Basically it should show pictures with some text and play some audio file. A simple XML model could look like this: http://example.com/