Exposing model to a loaded component



  • 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.