01-22-2013 06:45 AM
Hi
I am not able to set the icon badge of application using QML, I tried the sample code segment given along with the API reference documentation, the following one.
import bb.cascades 1.0
Page {
Container {
Button {
text: "Splat Badge"
onClicked: {
Application.setIconBadge(IconBadge.Splat);
}
}
Button {
text: "Remove Badge"
onClicked: {
Application.setIconBadge(IconBadge.None);
}
}
// Additional QML
}
}
But I could do it successfully using the c++ code segment. Is that anything I am missing to include while using QML ?
01-22-2013 11:55 PM
Try setting the badge by
Application.setIconBadge(1);
- Dishooom