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-boun...@lists.sailfishos.org] on behalf of alien 
[al...@rmail.be]
Sent: Wednesday, December 07, 2016 7:53 AM
To: devel@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-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to