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. Exposing model to a loaded component

Exposing model to a loaded component

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 292 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.
  • L Offline
    L Offline
    Lammonaaf
    wrote on last edited by Lammonaaf
    #1

    Let's say we have a ListModel (or any other valid model) with some elements. Text role of such model is exposed to a comboBox, alowing to select one item at a time. Now I'm struggling to implement a component which will display (and allow modification) of a selected model element. The key requirement here is to receive update signals but it would be great to be able just assign new values to model's properties, just like within a ListView. The solution with filtered (one item at a time) ListView works, but is pretty ugly. Is there any "single item view" or how can I implement my own?

    1 Reply Last reply
    0

    • Login

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