diff -r 9ab78e08a34c -r a3ad06ac390e qmlfrontend/Page1.qml --- a/qmlfrontend/Page1.qml Sat May 11 20:43:12 2019 +0200 +++ b/qmlfrontend/Page1.qml Sat May 11 22:39:55 2019 +0200 @@ -5,6 +5,7 @@ focus: true property HWEngine hwEngine + property NetSession netSession Component { id: hwEngineComponent @@ -17,6 +18,15 @@ } } + Component { + id: netSessionComponent + + NetSession { + nickname: "test0272" + url: "hwnet://gameserver.hedgewars.org:46632" + } + } + Component.onCompleted: { hwEngine = hwEngineComponent.createObject() } @@ -40,6 +50,10 @@ hwEngine.getPreview() } } + netButton.onClicked: { + netSession = netSessionComponent.createObject() + netSession.open() + } Keys.onPressed: { if (event.key === Qt.Key_Enter)