[Qt-interest] QSortFilterProxyModel doesn't update View
NoRulez
norulez at me.com
Wed Aug 3 09:58:25 CEST 2011
Hi,
I use a QSortFilterProxyModel to sort/filter data from a view.
However the QSortFilterProxyModel doesnt update the the view.
If I use the following code the view gets updated, but is there an other way
to update the view?
m_pFilterModel->setSourceModel(m_pFilterModel->sourceModel());
m_pTableView->setModel(m_pFilterModel);
m_pFilterModel->sort(m_pFilterModel->sortColumn(),
m_pFilterModel->sortOrder());
Best Regards
NoRulez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110803/23553efe/attachment.html
More information about the Qt-interest-old
mailing list