<div dir="ltr"><div>Thank for the response Martin,</div><div>I ended up recreating the View and does the trick but that has some downsides from accessibility and user point of view...</div><div></div><div><br></div><div>> in order to do that i guess some new api is needed in AppletQuickItem in libplasmaquick, a reload() method</div><div>> Would you be interested looking into that?</div><div><br></div><div>yes of course, but after my vacations in mid July, in case I manage to add the reload() method for AppletQuickItem</div><div>I will send the patch in phabricator and assign you as reviewer to discuss it :)</div><div><br></div><div>regards,</div><div>michail<br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Δευ, 1 Ιουλ 2019 στις 1:11 μ.μ., ο/η Marco Martin <<a href="mailto:notmart@gmail.com">notmart@gmail.com</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Jun 20, 2019 at 11:15 AM Michail Vourlakos <<a href="mailto:mvourlakos@gmail.com" target="_blank">mvourlakos@gmail.com</a>> wrote:<br>
><br>
> Hello everyone,<br>
><br>
> I need some help, Latte::Indicators (<a href="https://store.kde.org/browse/cat/563/" rel="noreferrer" target="_blank">https://store.kde.org/browse/cat/563/</a>) are standalone qml only packages like plasma applets which are loaded in order to show Tasks indication/information<br>
><br>
> My issue is that when an indicator's qml code is updated I would like the user to notice the update runtime in Latte Dock/Panels. Latte is using "Plasma::ContainmentView" for docks and panels which derives from "KQuickAddons::QuickViewSharedEngine". Searching the Internet for QQuickView a solutions is to do:<br>
><br>
> setSouce(QUrl));<br>
> engine()->clearComponentCache();<br>
> setSource(corona()->kPackage().filePath("lattedockui"));<br>
><br>
> but that does not work, it just destroys QQmlComponent of ContainmentView,<br>
><br>
> Do you have any ideas?<br>
<br>
this will reload the source of the view, which is just the tiny qml<br>
file from the shell poackage..<br>
so, you need to actually reload the whole containment i guess.<br>
<br>
in order to do that i guess some new api is needed in AppletQuickItem<br>
in libplasmaquick<br>
a reload() method (callable only from c++, not qml) that would do the<br>
same with the internal qmlobject (which is kindof the api of<br>
qquickview, but without a window) to itself and all eventual applet<br>
children (in case it's a containment)<br>
Would you be interested looking into that?<br>
<br>
--<br>
Marco Martin<br>
</blockquote></div></div>