[SailfishDevel] First app (QML with some python) with some major problems
alien
alien at rmail.be
Fri Dec 16 23:31:48 UTC 2016
Thanks, that was indeed what was wrong...
unfortunately, i rewrote that part, so that it would not need to replace
the previous page. because i'm just refreshing the data on the exising
page.
github is updated.
My current problems are:
- no icon yet (anyone can make me a suitable icon?)
- when choosing "stop following" on MainPage, it does not disappear...
- if you start follow a new one for the first time, (ie: browse
provider, pick a comic and go back to mainpage and click one), the
busyindicators keep showing busyindicator even if image has been loaded.
even scrolling down and back up will show the updated image.
I could not use ListModel, because i have complex data to set.
and the objects that i set, are apparently converted(?), because when i
try to get the information inside the delegate, it's undefined.
Kind Regards,
AL13N
Matthew Vogt schreef op 2016-12-09 02:40:
> Hi alien.
>
> I don't really follow your description of the issue with the
> PageStack. Are you trying to use a Dialog, and have the 'accept'
> action replace the dialog with another page that you're creating? If
> so, you need to use the 'acceptDestination' and
> 'acceptDestinationAction' properties.
> https://sailfishos.org/develop/docs/silica/qml-sailfishsilica-sailfish-silica-dialog.html/#acceptDestination-prop
>
> You can see an example of using these properties on your device in:
> /usr/usr/lib/qt5/qml/Sailfish/Contacts/ContactBluetoothImport.qml
>
> Why can't you use a ListModel in your ListView?
>
> Thanks,
> Matt
>
> ________________________________________
> From: Devel [devel-bounces at lists.sailfishos.org] on behalf of alien
> [alien at rmail.be]
> Sent: Wednesday, December 07, 2016 7:53 AM
> To: devel at lists.sailfishos.org
> Subject: Re: [SailfishDevel] First app (QML with some python) with
> some major problems
>
> wrong link: https://github.com/alien999999999/harbour-followme
>
> alien schreef op 2016-12-06 22:49:
>> I'm finally making my first app...
>>
>> https://www.openhub.net/p/harbour-followme
>>
>> Allthough it *works*, there's several things wrong with it:
>>
>> (I already filed some issues on github myself, so i don't forget it)
>>
>> 1. When jumping to a specific chapter, on return from the dialog, the
>> replace on pagestack does not seem to work, I end up with the old page
>> before the new page.
>>
>> 2. I could not use a ListModel (in ListView) because it changes
>> subobjects
>>
>> 3. because i'm using regular object classes as model, i need to
>> "assign" it after every change.
>>
>> 4. in huge lists, this makes the app crash when using onReceived from
>> python (unless i don't "assign" it.
>>
>> 5. i'm sure there's tons of other things that i'm doing wrong or
>> inefficient.
>>
>>
>> I will appreciate all constructive criticism/pull
>> requests/suggestions; though i'm planning not to use any C++ in this
>> app.
>> _______________________________________________
>> 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
More information about the Devel
mailing list