View Single Post
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#1
Hi i'm beginning with QML and i would like to know how i execute a script.sh with a QML button.

I have the script.sh:
Code:
#!/bin/sh

gconftool -s --type=string /meegotouch/theme/name blood
/sbin/initctl restart xsession/mthome
exit 0
And i have the QML:
Code:
    ToolButton {
        id: myButton
        x: 121
        y: 410
        width: 119
        height: 62
        onClicked: {
            HERE I WANT TO EXECUTE THE SCRIPT
        }
    }
}
Is it possible?
I must package the sh file with QT or i must write the sh script inside QML?
 

The Following User Says Thank You to flotron For This Useful Post: