<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 2, 2014 at 10:10 PM, Hugo Pereira Da Costa <span dir="ltr"><<a href="mailto:hugo.pereira@free.fr" target="_blank">hugo.pereira@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi all,<br>
<br>
I guess its a question to Qt experts or possibly low level KF5 experts.<br>
<br>
When comparing debugging outputs when running app + style against Qt4 and Qt5, I've noticed the following significant difference.<br>
In Qt4, as far as I can tell, QStyle was only instanciated one per QApp, and deleted at the end.<br>
In Qt5 this seems not to be true anymore and I've seen up to 6 QStyle running concurently for a single Kate Window, increasing to 13 when opening 'open file' dialog, decreasing back to 6 when closing it, etc.<br>
Is this a known feature ? Will this stay ?<br>
<br>
(I'm running a rather old checkout of Qt-5.4)<br>
<br>
If yes, there need to be some design change in Oxygen (as well as in breeze), to use singletons rather than QStyle's QObject's children for many things, with regard for instance caching, configuration, and even possibly even filters, otherwise I foresee quite some overhead ...<br>
<br>
Information welcome,<br>
<br>
Best regards,<br>
<br>
Hugo<br></blockquote><div><br></div><div>Hi Hugo,</div><div>Thanks for looking into this! :)</div><div><br></div><div>I would recommend to start by adding a breakpoint on the style's constructor to see who is calling it. To me it sounds like a bug in Qt, but it needs investigation.</div><div><br></div><div>Aleix </div></div></div></div>