Need help for Model/View programming
-
Hi all,
I'm going to create Window like below to select the particular item from the Database.
!http://s14.postimg.org/sh6sawri9/sample_ui.png(Sample gui)!
Window should be worked like this;
When user select the 'Size' only available 'Type's and available 'Value's should be appeared in the combo boxes. In another words, below two combo boxes should be filtered.
Moreover, Value combo box to be filtered when 'Type' change.My problem is what is the optimum way for doing that using model/view programming?
Actually I don't know which model (e.g. QStringListModel) is suitable for this job. And need to think of storing the selected properties of the item.Thanks in advance.
-
I'm not an expert in Model-View framework.
There is a "Custom Sort/Filter Model Example":http://qt-project.org/doc/qt-5/qtwidgets-itemviews-customsortfiltermodel-example.html that talks about filtering models. -
Dear andreyc,
I missed your reply. May be my e-mail notifications were caught as spams.
I'll try this example and get back to you if I get a problem.
Thank you for helping me.