View Single Post
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#8
Originally Posted by flotron View Post
Ok! no errors.

Now, where i place the "script.sh" file? under QML "Other files"?

And then it executes with "onClicked: scriptLauncher.launchScript()"?
or i must add for ex: "onClicked: scriptLauncher.launchScript(/opt/something/string.sh)"?
I would add a folder called script to the package and put your script in there. You will need to add this to the package in .pro file.

AFAIU the m_procces location is done in the slot (were "sh script.sh" is in Marxian's example)
This is were you need to put "sh /opt/mypackage/script/myscript.sh"
onClicked can be left alone.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

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