PDA

View Full Version : view -model



waiter
10th May 2012, 11:55
I want to display Items in two QTreeViews,,they have the same data,but one has Qt::CheckStateRole and Qt::DecorationRole,the other has no,,what should I do??

folibis
10th May 2012, 13:31
http://qt-project.org/faq/answer/when_2_views_share_the_same_model_how_can_the_view s_get_different_values_fo

waiter
11th May 2012, 06:06
http://qt-project.org/faq/answer/when_2_views_share_the_same_model_how_can_the_view s_get_different_values_fo

I want to display items in two QTreeView,both have Qt::CheckStateRole,but have different check statue,,they share the same Qt::DisplayRole