Hi.

I have QListView that should display files icons according to name filter I set.

The problem is that working only first time I set name filter . If I try to change name filter I have error.

QDirModel* pListModel = (QDirModel*)ui.m_imageListView->model(); //QListView ->ui.m_imageListView
pListModel->setNameFilters(imageFilters);

The thread 'Win32 Thread' (0x13fc) has exited with code 0 (0x0).
ASSERT: "index.isValid()" in file itemviews\qlistview.cpp, line 2842
QPaintEngine::setSystemClip: Should not be changed while engine is active
QPaintEngine::setSystemClip: Should not be changed while engine is active
QWidgetPrivate::beginSharedPainter: Painter is already active
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::begin: A paint device can only be painted by one painter at a time.
ASSERT: "sharedPainter ? sharedPainter->isActive() : true" in file kernel\qwidget.cpp, line 4565