I having a problem where the app drawer is not showing up when starting in the android theme. I have the code for two qml files which show the problem. The app drawer button will not show up in the navigation bar. If I use the menu to switch to another theme and then back to android, it will show up. You can see I’m using a loader to load the TopPage.qml. If I don’t use the loader and put the TopPage directly into the App, the app drawer starts just fine. So it’s something to do with the loader. Also, this only happend when I recently updated to the newest version of vplay. On older versions, this worked fine.
Thanks for any help
Main.qml:
import Felgo 3.0
import QtQuick 2.5
App {
id: app;
onInitTheme: {
Theme.platform = "android";
}
signal pageChanged(string name);
Loader {
id: appLoader;
objectName: "appLoader";
asynchronous: true;
source: "TopPage.qml";
anchors.fill: parent;
visible: false;
onLoaded: {
appLoader.item.parent = appContent;
app.pageChanged(appLoader.source);
}
function changePage(page) {
appLoader.source = page;
} // changePage()
}
Rectangle {
id: appContent;
anchors.fill: parent;
}
}
import Felgo 3.0
import QtQuick 2.0
Page {
id: topPage;
title: qsTr("Top Page");
Navigation {
id: nav;
NavigationItem {
id: testNavItem1;
title: qsTr("test1");
icon: IconType.square;
NavigationStack {
Page {
title: "Page one";
AppText {
text: "text one";
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
}
}
}
NavigationItem {
id: testNavItem2;
title: qsTr("test2");
icon: IconType.circle;
NavigationStack {
Page {
title: "Page two";
AppText {
text: "text two";
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
}
}
}
}
}
}