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

Igor Mironchik igor.mironchik at gmail.com
Wed Jan 20 11:38:39 CET 2016



On 20.01.2016 12:45, Mojmír Svoboda wrote:
> On 19.1.2016 10:37, Giuseppe D'Angelo wrote:
>>
>> Please trim down to a small testcase and submit a bug report. If your
>> model is well-behaving the view can't cache the option that way.
>
> I managed to reproduce the behaviour with QStandardItemModel, so here
> is the repro case:
> https://bugreports.qt.io/browse/QTBUG-50551

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

>
> Many thanks guys,
> Mojmir
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list