[SailfishDevel] Problem with QQmlListProperty

Markus Svensson markus.svensson at me.com
Tue Dec 31 11:14:41 UTC 2013


Thanks, Janne - I've spent hours trying to get that working. :)

Happy new year!

Regards,
Markus

31 dec 2013 kl. 05:35 skrev Janne Kokko <jmkokko1 at gmail.com>:

> Remove "static" keyword  and put correct scope for the methods in cpp file:
> 
> 2013/12/29 Markus Svensson <markus.svensson at me.com>:
>> Hi guys,
> ...
>> static void append(QQmlListProperty<Note> *property, Note* value) {
>> 
>>    NoteList *list = (NoteList*) property;
>> 
>>    list->addNote(value);
>> 
>> }
> 
> =>
> 
> void NoteList::append(QQmlListProperty<Note> *property, Note* value) {
> 
>    NoteList *list = (NoteList*) property;
> 
>    list->addNote(value);
> 
> }
> 
> Keep the "static" keyword in h file though.
> 
> --
> Janne
> _______________________________________________
> SailfishOS.org Devel mailing list



More information about the Devel mailing list