Hi,
Thanks for clarification. I don't remember that there would be limitations for launching self signed apps from WRT widgets.
Following code can be used to launch an app.
Code:
var so;
var criteria = {
ApplicationID: "s60uid://_youruid_"
};
//call this on body onload="init();"
function init(){
so = device.getServiceObject("Service.AppManager", "IAppManager");
}
result = so.IAppManager.LaunchApp(criteria);
If you want to use the WRT home screen widget only as a launcher that starts your Qt application, you can call launchApp when checking screen size.
Calling window.close closes the WRT widget, but does not remove it from home screen.
Code:
//Miniview treshold in px
var MINIVIEW_TRESHOLD = 150;
// Listener for the view mode changes
window.onresize = checkViewMode;
//check and updates the current view mode
function checkViewMode(){
if (window.innerHeight < MINIVIEW_TRESHOLD) {
showMiniView();
}else {
result = so.IAppManager.LaunchApp(criteria);
window.close();
}
}
Br,
Ilkka