I'm working on a C++ project for which I need to create GUI. I have some experience with Qt Widgets, but we have decided to go with QML for this project for several reasons. The GUI is pretty simple, nothing fancy. We are trying to have several views and navigation will be accomplished with buttons located in header.
Each button will bring a view in the front. See attached screenshot to get a better idea.
It's worth mentioning that during view navigation, the actual view shouldn't be destroyed. State should be preserved. Basically I'm trying to recreate Tab control except for button placements.
Now the problem is that, I have no prior experience with QML and I'd like to ask guidance. Which control will be more appropriate for this scenario? I've checked SwipeView, TabControl etc, but was easily confused. If you could recommend which area should I research I'd be very grateful.
Thanks
P.S. It would be nice to have each view's qml in a separate qml file so we won't end up with one huge qml file.
StackLayout
or a more "involved" implementation withStackView
. I don't think there are any very strong argument against any of the options, though. – BaCaRoZzo