import QtQuick 2.5 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.0 import ApplicationLauncher 1.0 import "." ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") SetNetworkInterface { id: setEth0 mode: "static" ifacename: "eth0" address: "192.168.0.233" netmask: "255.255.255.0" gateway: "192.168.0.123" infile: "/home/ru/BUILD/QT562_di-soric/GfA/board/GfA/Display001/rootfs/etc/network/interfaces" outfile: "/home/ru/out.txt" } Button { x:10 y:10 height: 40 width:120 text: "Eth0 static" onClicked: { setEth0.mode = "static"; setEth0.doSetInterface(); } } Button { x:10 y:80 height: 40 width:120 text: "Eth0 dhcp" onClicked: { setEth0.mode = "dhcp"; setEth0.doSetInterface(); } } }