On 04/10/2012 04:18 PM, Aaron J. Seigo wrote:
On Monday, April 9, 2012 22:01:08 Alex Dancu wrote:
I'm trying to persist and then get back from the configuration the
plasmoid settings. I have tried to persist first a single String
property with no success at all in getting it back. I tried to cast -
config.readEntry(QString('k123sensors')) but still no success.
if you are calling readConfig from the constructor, it won't work. you can only 
access your config reliably after init() is called on the applet.

furthermore, if you are running it in plasmoidviewer, then the configuration 
that is loaded is the default empty one and then the saved config is loaded. 
this helps test configChanged(), which i'm guessing you haven't implemented in 
your applet. without configChanged(), your applet will not work with desktop 
scripting, for instance.



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
Thank you very much, this explain the mystery.

Alex