3 views and 1 model
-
Hi,
I tried to create a 3 view (Table,Tree and list) using one model (QStanderdItemModel).
on table and list views it's work well, but on tree view didn't work.I heard about proxy model but unfortunately I can't make it.
Could you please give me a normal example.Thanks.
Regards.
-
Hi asalotaibi!
Wellcome to devnet.
"on tree view didn’t work" - how is it?
here is the example for "proxy model":http://qt-project.org/doc/qt-5.0/qtwidgets/itemviews-customsortfiltermodel.html -
It should work just fine. Proxy models can be very useful, but let's not get ahead of ourselves and first see what you are really trying to do.
What did not work exactly?