QtMvvm icon indicating copy to clipboard operation
QtMvvm copied to clipboard

TreeView with mvvm add/delete/change

Open happydpc opened this issue 6 years ago • 3 comments

How can implement such operations in mvvm with treeview?

happydpc avatar Oct 25 '19 14:10 happydpc

I am not sure what you are asking. You can simply create an QAbstractItemModel in the core library, provide it via a ViewModel properties and use it from the GUI as wished.

An example for this can be found in the samples:

Skycoder42 avatar Oct 26 '19 10:10 Skycoder42

Thank you.I will have a try.

happydpc avatar Oct 26 '19 13:10 happydpc

I am not sure what you are asking. You can simply create an QAbstractItemModel in the core library, provide it via a ViewModel properties and use it from the GUI as wished.

An example for this can be found in the samples:

Facing issues while implementing, can you please share an example in the samples?

shujaatak avatar Nov 13 '19 18:11 shujaatak