2012/2/5 Marco Martin <notm...@gmail.com>: > On Sun, Feb 5, 2012 at 3:39 PM, uomonero <uomoner...@gmail.com> wrote: >> Hi, >> I'm new to plasmoid development. I'm trying to learn how to write a >> QML plasmoid, but I encountered a little difficulty with the use of >> global plasmoid object. >> >> This is my simple test code: >> >> import QtQuick 1.0 >> import org.kde.plasma.core 0.1 as PlasmaCore >> import org.kde.plasma.components 0.1 as PlasmaComponents >> >> PlasmaComponents.Label{ >> id: labelTest >> text:"Test" >> >> Component.onCompleted:{ >> plasmoid.addEventListener("sizeChanged", sizeChanged); >> } >> function sizeChanged(){ >> print("sizeChanged listener"); >> } >> } >> >> Running with plasmoidviewer, when I resize the plasmoid nothing is printed. >> What's wrong? > > > uhm, apart that sizeChanged in particular isn't really necessary since > the size is the size of the root item, if that label is the plasmoid > main script it should work fine >
Thanks, Marco. Yes, the Label is the plasmoid main script, but the callback just don't work. I tryed also with "userConfiguring" callbacks with same result. The sizeChanged function does not seem to be invoked when expected. Any suggestion for event debugging? _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel