[Development] Access lazy Models from within QML

2013-03-04 Thread Dominik Holland
Hi all, i'm currently in a project where i try to access a lazy C++ model from within QML. The basics are working well but when it comes to setting the currentIndex it becomes a bit odd. If i implemented everything well the lazy model always reports the element count it currently has loaded b

Re: [Development] Access lazy Models from within QML

2013-03-04 Thread Alan Alpert
whoops, missed reply-all On Mon, Mar 4, 2013 at 4:51 PM, Alan Alpert <4163654...@gmail.com> wrote: > On Mon, Mar 4, 2013 at 1:36 AM, Dominik Holland > wrote: >> Hi all, >> >> i'm currently in a project where i try to access a lazy C++ model from >> within QML. >> >> The basics are working well bu

Re: [Development] Access lazy Models from within QML

2013-03-04 Thread Dominik Holland
Hi, On 03/05/2013 01:51 AM, Alan Alpert wrote: > whoops, missed reply-all > > On Mon, Mar 4, 2013 at 4:51 PM, Alan Alpert <4163654...@gmail.com> wrote: >> On Mon, Mar 4, 2013 at 1:36 AM, Dominik Holland >> wrote: >>> Hi all, >>> >>> i'm currently in a project where i try to access a lazy C++ mode

Re: [Development] Access lazy Models from within QML

2013-03-05 Thread Robin Burchell
On Tue, Mar 5, 2013 at 8:28 AM, Dominik Holland wrote: > Yes this makes sense and it's similar to my solution... But why do you > need to multiply it with 0.9 ? To start fetching (hopefully) before the data is really needed. Models may involve asynchronous access (network etc) which might take a

Re: [Development] Access lazy Models from within QML

2013-03-05 Thread Dominik Holland
On 03/05/2013 09:35 AM, Robin Burchell wrote: > On Tue, Mar 5, 2013 at 8:28 AM, Dominik Holland > wrote: >> Yes this makes sense and it's similar to my solution... But why do you >> need to multiply it with 0.9 ? > To start fetching (hopefully) before the data is really needed. Models > may involv

Re: [Development] Access lazy Models from within QML

2013-03-11 Thread Stephen Kelly
On Monday, March 04, 2013 16:51:32 Alan Alpert wrote: > > This is not a bug, ListView does not currently support canFetchMore > > (which only claims to be used by QAbstractItemView, so the docs are > > accurate already). What a strange justification to not support canFetchMore. It boggles the mind

Re: [Development] Access lazy Models from within QML

2013-03-11 Thread Alan Alpert
On Mon, Mar 11, 2013 at 3:53 AM, Stephen Kelly wrote: > On Monday, March 04, 2013 16:51:32 Alan Alpert wrote: >> > This is not a bug, ListView does not currently support canFetchMore >> > (which only claims to be used by QAbstractItemView, so the docs are >> > accurate already). > > What a strange