That is a project template to simplify the creation of QuickFlux application with unit tests.
It includes:
- qpm.json - Install QuickFlux via qpm
- Template of ActionTypes and AppActions
- Templates of Store / StoreWorker and Adapter
- AppView C++ Class - Initialize QML environment and listen message from AppDispatcher
- Unit Tests with using Testable framework
Usage
- Clone or download this project to local folder
- Extract
- Rename the file according to your needs.
Wizard in Qt Creator
If you want to have a wizard to create a project with using Quick Flux in Qt Creator, you may install this project:
benlau/qpm-qt-creator-project-template: Qt Creator Project Templates with qpm
This template is free and unencumbered software released into the public domain.
File Structure:
.
βββ README.md
βββ app
βΒ Β βββ quickfluxapp
βΒ Β βββ App
βΒ Β βΒ Β βββ actions
βΒ Β βΒ Β βΒ Β βββ ActionTypes.qml
βΒ Β βΒ Β βΒ Β βββ AppActions.qml
βΒ Β βΒ Β βΒ Β βββ qmldir
βΒ Β βΒ Β βββ adapters
βΒ Β βΒ Β βΒ Β βββ StoreAdapter.qml
βΒ Β βΒ Β βΒ Β βββ qmldir
βΒ Β βΒ Β βββ constants
βΒ Β βΒ Β βΒ Β βββ Constants.qml
βΒ Β βΒ Β βΒ Β βββ qmldir
βΒ Β βΒ Β βββ stores
βΒ Β βΒ Β βΒ Β βββ MainStore.qml
βΒ Β βΒ Β βΒ Β βββ qmldir
βΒ Β βΒ Β βββ storeworkers
βΒ Β βΒ Β βββ MainStoreWorker.qml
βΒ Β βΒ Β βββ StoreWorker.qml
βΒ Β βΒ Β βββ qmldir
βΒ Β βββ README.md
βΒ Β βββ app.qrc
βΒ Β βββ appview.cpp
βΒ Β βββ appview.h
βΒ Β βββ deployment.pri
βΒ Β βββ main.cpp
βΒ Β βββ main.qml
βΒ Β βββ qpm.json
βΒ Β βββ quickfluxapp.pri
βΒ Β βββ quickfluxapp.pro
βββ tests
βββ quickfluxappunittests
βββ main.cpp
βββ qmltests
βΒ Β βββ tst_QmlTests.qml
βββ qpm.json
βββ quickfluxappunittests.pro
βββ tests.cpp
βββ tests.h