-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomPage.qml
44 lines (30 loc) · 929 Bytes
/
CustomPage.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.1
Rectangle {
color: "#9E9E9E"
property int currIndex: 0
SwipeView{
id: viewSwipe
width: parent.width
height: parent.height * .8
anchors.top: parent.top
anchors.topMargin: parent.heing * .05
anchors.left: parent.left
currentIndex: 0
Component.onCompleted: {
currIndex = viewSwipe.currentIndex;
}
function addPage(page){
console.log("adding new page");
addItem(page);
page.visible = true;
}
/*function popPage(list){
var namer = "pager" + currIndex.toString();
var component = Qt.createComponent("SlatePage.qml")
var page = component.createObject(viewSwipe,
{"id: " namer });
}*/
}
}