123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import QtQuick 2.5
- import QtQuick.Controls 1.4
- import QtQuick.Layouts 1.0
- import ApplicationLauncher 1.0
- ApplicationWindow {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- Application {
- id: testScripts
- appName: "cat"
- arguments: "/etc/passwd"
- onAppFinished: {
- console.debug("AppFinished :");
- console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
- console.debug("stdERR :" + stdERR);
- console.debug("stdOUT :" + stdOUT);
- }
- onAppStarted: {
- console.debug("appStarted :");
- console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
- }
- onAppError: {
- console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
- }
- }
- Button {
- x:10
- y:10
- height: 40
- width:120
- text: "apptest"
- onClicked: {
- testScripts.launchScript();
- }
- }
- }
|