Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. organizing pages for an android app
QtWS25 Last Chance

organizing pages for an android app

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlandroidlistmodellistview
1 Posts 1 Posters 590 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scrub
    wrote on 4 Feb 2016, 18:25 last edited by
    #1

    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.

    1 Reply Last reply
    0

    1/1

    4 Feb 2016, 18:25

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved