mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
49 lines
828 B
QML
49 lines
828 B
QML
import QtQuick 2.9
|
|
import QtQuick.Controls 2.2
|
|
import test 1.0
|
|
|
|
ApplicationWindow {
|
|
visible: true
|
|
width: 640
|
|
height: 480
|
|
title: qsTr("Tabs")
|
|
|
|
SwipeView {
|
|
id: swipeView
|
|
anchors.fill: parent
|
|
currentIndex: tabBar.currentIndex
|
|
|
|
Page1Form {
|
|
}
|
|
|
|
Page2Form {
|
|
}
|
|
}
|
|
|
|
footer: TabBar {
|
|
id: tabBar
|
|
currentIndex: swipeView.currentIndex
|
|
|
|
TabButton {
|
|
text: qsTr("Page 1")
|
|
}
|
|
TabButton {
|
|
text: qsTr("Page 2")
|
|
}
|
|
}
|
|
|
|
Timer {
|
|
interval: 500; running: true; repeat: true
|
|
onTriggered: {
|
|
test.testMethod()
|
|
}
|
|
}
|
|
|
|
TestObject {
|
|
id: test
|
|
Component.onCompleted: {
|
|
// Call .NET
|
|
test.testMethod()
|
|
}
|
|
}
|
|
}
|