Simple QML module providing application navigation based on StackView.
To integrate it with your application:
- Create and add
AppNavigationData.h
file to your project (HEADERS variable in *.pro). The easiest would be to copy and renameAppNavigation/AppNavigationData.h.sample
file. - Include
AppNavigation/AppNavigation.pri
in your application .pro file. It verifies whetherAppNavigationData.h
is one of a project headers, therefore it should be included afterHEADERS
definition in your *.pro file. - Define your application pages and popups in
AppNavigationData.h
. Sample file includes comments with hints how to do so. - In order to use AppStackView, AppPage and AppPopup in your QML code, use
import "qrc:/AppNavigation"
. - In order to use PageID/PopupID enumerations and AppNavigationController (registered as singleton) use
import com.milosolutions.AppNavigation 1.0
.