QML global plasmoid callback problem
uomonero
uomonero84 at gmail.com
Sun Feb 5 14:39:45 UTC 2012
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?
-- Andrea Vinci
More information about the Plasma-devel
mailing list