P
P
Pavel K2015-05-30 23:11:08
Qt
Pavel K, 2015-05-30 23:11:08

How to get item data from the model (QAbstractItemModel) directly i.e. NOT using ListView and others?

Greetings!
There is a model based on QAbstractItemModel that
is required outside of ListView, Repeater and others to get item data just as if it were done in the view itself.
those. for example mymode[25].display The
model itself cannot be changed, just like running it through a proxy model, and so on.
Is it possible to do this somehow in the most beautiful way (even creating a separate custom view is considered, but without the bells and whistles of ListView and others)?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-05-31
@gbg

Have you tried calling the data() method?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question