On 20.01.2016 14:25, Mojmír Svoboda wrote:
On 20.1.2016 11:38, Igor Mironchik wrote:

Why are you deleting model?

i am trying to remove everything i can so that there are no references
to the underlying data (m_strings).

Just implement clear() method and between
beginResetModel(), endResetModel() delete your data. And I guess that
this crash will not occur again.

not sure if it will help, can try. but the value is cached in QCommonStyle, not the model.

When you call beginResetModel() and endResetModel() view clears everything cached...


Mojmir
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to