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

Igor Mironchik igor.mironchik at gmail.com
Mon Jan 18 14:48:35 CET 2016



On 18.01.2016 13:46, Mojmír Svoboda wrote:
> On 18.1.2016 10:21, Igor Mironchik wrote:
>
>> Can you reset model on closing of your table view, drop any data, etc...
>> And then close view.
>
> Yes i am doing that. I am trying to close everything i know
> i created (models, proxy models, context menus, delegates).
> But the problem persists.

What if to change QStringLiteral with QLatin1String usage?

>
> While inpecting the code i came to think that this class 
> (QWindowsVistaStyle in current case) is not deleted when i close my 
> table, but rather shared between multiple widgets. If i take
> QStyle * s0 =  m_main_window->dockManager().style(); for example
> where dockManager() is an unrelated QTreeView, the .text field in this
> s0 contains .text from completely different QTableView (the one that
> i am closing).
>
>> If I understood your correctly you are loading model again on new show?
>
> i have one widget right from start, this is the dockManager with the 
> style s0. This widget is the first to create and therefore
> i think it's the first to create the style via QStyleFactory. Some 
> (all?) subsequent views seems to re-use this s0.
>
> And then there is this QTableView that opens when tcp connection with 
> data comes and closed on new connection with new data or user request.
>
> Mojmir
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list