Thank you Günther,
Is working now. I reduce the code for just to show in a simple way. Here is the code:
I create a new VPlay APP. It was only In Main.qml file. Than I add 3 page (Page1.qml, Page2.qml and Page3.qml)
In Main.qml I add below code.
<div>import Felgo 3.0
import QtQuick 2.4
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2</div>
<div>Page {
anchors.fill: parent
// Background
Rectangle {
y: 0; width: parent.width; height: parent.height
gradient: Gradient {
GradientStop { position: 0.00; color: “#1AD6FD” }
GradientStop { position: 1.00; color: “#1D62F0” }
}
}</div>
<div> SwipeView {
id: view
currentIndex: 0
anchors.fill: parent
anchors.top: parent.top</div>
<div> Item{
id: firstItem
Loader {
// index 0
id: pageOneLoader
source: “Page1.qml”
anchors.fill: parent
anchors.top: parent.top
}
}</div>
<div>
Item{
id: secondItem
Loader {
// index 1
id: pageSecondLoader
source: “Page2.qml”
anchors.fill: parent
anchors.top: parent.top
}
}</div>
<div>
Item{
id: thirdItem
Loader {
// index 2
id: pageThirdLoader
source: “Page3.qml”
anchors.fill: parent
anchors.top: parent.top
}
}</div>
<div> }</div>
<div> PageIndicator {
id: indicator
count: view.count
currentIndex: view.currentIndex
anchors.bottom: view.bottom
anchors.horizontalCenter: parent.horizontalCenter
}</div>
<div>}</div>
<div></div>
<div>And Each page (page1, page2 etc) I add below code;</div>
<div> // emitting a Signal could be another option
Component.onDestruction: {
cleanup()
}</div>
<div></div>