[Interest] invalidated copies of QString in QCommonStyle::cachedOption

Igor Mironchik igor.mironchik at gmail.com
Wed Jan 20 12:28:12 CET 2016



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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list