Can I create some custom view? I have some model(written in C++ inheriting QAbstractListModel), which I use in ListView and GridView. When I do some changes in C++, I can just emit dataChanged signal to update my views. Can I connect some QML properties to data from model? Image.source for example?
EDIT 1
I have QAbstractListModel subclass. It contains data about some files. I have created ListView in the left of my main window. Click on some row should change view in the right working area. Working area contains detailed information about each file. So, how can I implement this?
MouseAreain yourListViewdelegateand handling theonClicked- sjdowlingMouseAreain my delegate andonClickedI save index and change state of right view. It gets information (file_name, size, etc.) fromMyMainModelwhich I use for left list. When some changes are happened interactively with a model, leftListViewis changed according to them after emittingdataChanged. But right view, which is notGridVieworListView, doesn't change and I should use something likeConnectionsQML element and emit somemyParamChangedfrom C++. - VALOD9