<div dir="ltr">Hi all,<div>time ago I've designed  a Plasma 4 plasmoid together with a dataengine to configure and control a process (redshift). </div><div><br></div><div>The structure is the following:</div><div><span style="line-height:1.5">- The plasmoid allow the user to start and stop the process, this is done by running a servicejob provided by the dataengine</span></div><div>- The dataengine controls the process (start and stop it) [I need a custom dataengine and I cannot use the executable dataengine]</div><div>- Multiple instances of the plasmoid and the dataengine share the configuaration via KConfigXT <span style="line-height:1.5">in this way when the user access the plasmoid configuration this is propagated to the dataengine and synced with other instances of the plasmoid</span></div><div><br></div><div>Now I want to port this to plasma 5 but I'm facing huge difficulties. I've managed to port the dataengine, rewrite the CMakeFiles and I've partially rewritten the apple in QML.</div><div><br></div><div>The problem now is how to manage the configuration.</div><div><br></div><div>I know that the plasmoid configuration can be accessed  via plasmoid.configuration and that I can map the fields in main.xml to the ui elements of the config dialog. The problem is how to synchronize this configuration with the other instances of the plasmoid (each plasmoid has his own configuration in plasma 5).</div><div>How to pass this configuration to the dataengine?</div><div>Any idea to do this in a simple way?</div><div><br></div><div>I've tried to extend my plasmoid with a C++ plugin so that in C++ I can still use the old KConfigXT system in order to share a config file between the plasmoid and the dataengine (somehow works) but I don't know how  to sync this with the plasmoid configuration.</div><div>In particular how can I know when the user finished editing the settings in the UI so that I can notify the dataengine? It seems there are no signal to notify this.</div><div><br></div><div><br></div><div>Various doubt:</div><div>1) The plasmoid configuration system is explained here: <a href="http://aseigo.blogspot.dk/2013/02/elegant-plasmoid-configuration.html">http://aseigo.blogspot.dk/2013/02/elegant-plasmoid-configuration.html</a>. Is it there any other page of documentation for this?</div><div><br></div><div>2) Which is the proper way to extend the QML plasmoid in C++. I've seen two approaches.</div><div>- plasmoid.nativeInterface as suggested in plasma-framework/templates/cpp-plasmoid/ (<- This should be documented in techbase, it's quite hidden)</div><div>- The other as explained here <a href="http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html">http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html</a> and how I've seen implemented in many plasmoids </div><div><br></div><div>3) How can I catch a signal emitted by the 'plasmoid' object in QML?</div><div>Let's say I want to catch the signal '<b style="font-size:13px;font-family:"noto sans",verdana,geneva,arial,sans-serif;line-height:16.9px">userConfiguringChanged' how can I do it?</b></div><div><span style="line-height:1.5"><br></span></div><div>Regards</div><div><br></div></div>