organizing pages for an android app
-
So I am developing an android app which must support multiple clients per instance, all settings and text will be dependent on the chosen client and the user should be able to switch between clients from a top-level menu. What I have tried so far is to layer the settings-lists model/view/settings-page where the model view and page are separate custom components, looks like this:
My_Model.qml
ListModel{ id:network_model ListElement{ client_nick:"accepted_input" router_address: "192.6.blah" passphrase:"goobledegook" group_key:"www.blah.com" } ListElement{ client_nick:qsTr("aaxaxsacsacsa") router_address: "192.css" passphrase:"gcsacsacsa" group_key:"www.a" } }
View.qml
ListView{ Component{ id:comp_del . . . } model:My_model{} delegate:comp_del }
Options_page.qml
Item{ View{} }
I have it working in design view but if I try to emulate for android (x86) it gives a black screen no error, I feel like I'm probably just taking a a bad approach to this, but I haven't been able to find any examples with functionality like I need (a series of views based on updatable models, with top-level access to those models), does anyone know of an approach or example(s) that might help me do this. Also this maybe a piss-poor explanation, if it's unclear just lemme know and I'll try to explain.