main.qml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import QtQuick 2.5
  2. import QtQuick.Controls 1.4
  3. import QtQuick.Layouts 1.0
  4. import ApplicationLauncher 1.0
  5. ApplicationWindow {
  6. visible: true
  7. width: 640
  8. height: 480
  9. title: qsTr("Hello World")
  10. Application {
  11. id: testScripts
  12. appName: "cat"
  13. arguments: "/etc/passwd"
  14. onAppFinished: {
  15. console.debug("AppFinished :");
  16. console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
  17. console.debug("stdERR :" + stdERR);
  18. console.debug("stdOUT :" + stdOUT);
  19. }
  20. onAppStarted: {
  21. console.debug("appStarted :");
  22. console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
  23. }
  24. onAppError: {
  25. console.debug("appError : " + exitError + " appStatus : " + exitStatus + " appCode " + exitCode );
  26. }
  27. }
  28. Button {
  29. x:10
  30. y:10
  31. height: 40
  32. width:120
  33. text: "apptest"
  34. onClicked: {
  35. testScripts.launchScript();
  36. }
  37. }
  38. }