Page by Page Display [Android]
I wonder something that how can I make a page by page display on my android app?
Generally, when I make a program on Windows, I have a MainWindow class and a main window. Sometimes I show widget windows. For example settings window, about window etc. You know, this method is not useful for android. Generally, mobile apps run on full screen. I used to make a program on QML (on Windows) and its good for my wish. But I dont like QML. How can I do that on Qt?
I hope I can clearly tell my wish.
Check StackView of QtQuick controls
1 : you can hide the other "pages" when the major page is on
2 : use StackView of QtQuick controls
3 : if there are too many pages to handle, you can generate those pages dynamically
This link should be able to help you
What do android developers do? Which methods are useful to do that?
Lets take a look what I see.
1: I should use Qt to do that. All windows are full screen. Only a window that is necessary to seem is show, rest of windows are hide. (I guess the sentence is weird. I hope you understand)
2: I got the point. There is a good article in "here":http://qt-project.org/doc/qt-5.1/qtquickcontrols/qml-qtquick-controls1-stackview.html.
3: How can i do that?
- I think that you just need to set the property visible for the pages, but that's need to confirm.
- Loader? See "Controlling Element Lifetime":http://qt-project.org/doc/qt-5.1/qtdoc/qtquick-performance.html part
I will read the articles. When I can make a something, I will write post.