Marco I played with this but I didnt have any success, 1. I added a reload() function in AppletQuickItem :
void AppletQuickItemPrivate::reload() { auto oldQmlObject = qmlObject; s_rootObjects.remove(oldQmlObject->rootContext()); init(); oldQmlObject->deleteLater(); } void AppletQuickItem::reload() { d->reload(); init(); } 2. In Latte::View this is called with: void View::reloadSource() { engine()->clearComponentCache(); PlasmaQuick::AppletQuickItem *cai = containment()->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>(); if (cai) { qDebug() << " CONTAINMENT GRAPHIC OBJECT RELOADING!!!"; cai->reload(); } } 3. But [1]-[2] just empties the Latte::View with no visual results and plenty of warnings from qml : -------- [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:469: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:454: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:453: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:451: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:450: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:449: ReferenceError: plasmoid is not defined [warning 14:47:30.888888] - file:///home/master/kde/usr/share/plasma/plasmoids/org.kde.latte.containment/contents/ui/main.qml:448: ReferenceError: plasmoid is not defined -------- regards, michail Στις Δευ, 1 Ιουλ 2019 στις 1:47 μ.μ., ο/η Marco Martin <notm...@gmail.com> έγραψε: > On Mon, Jul 1, 2019 at 12:20 PM Michail Vourlakos <mvourla...@gmail.com> > wrote: > > > > Thank for the response Martin, > > I ended up recreating the View and does the trick but that has some > downsides from accessibility and user point of view... > > > > > in order to do that i guess some new api is needed in AppletQuickItem > in libplasmaquick, a reload() method > > > Would you be interested looking into that? > > > > yes of course, but after my vacations in mid July, in case I manage to > add the reload() method for AppletQuickItem > > I will send the patch in phabricator and assign you as reviewer to > discuss it :) > > cool, awesome :) >