ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
Loading...
Searching...
No Matches
viewsolutions.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2020-2025 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef VIEWSOLUTIONS_H
9#define VIEWSOLUTIONS_H
10
11#include "modelstorage.h"
13
14class QQmlApplicationEngine;
15
17//#define INIT_VIEW_SOLUTIONS(result, engine) \
18// Q_INIT_RESOURCE(ViewSolutionsResources); \
19// result = ViewSolutions::init(engine)
20
32inline void initResources() { /*Q_INIT_RESOURCE(ViewSolutionsResources);*/ }
33
72namespace ViewSolutions {
73
92[[nodiscard("The ViewSolutions create model storage space for all QML. This is central model for fast acces to models of your App.") ]]
93QSharedPointer<ModelStorage> VIEWSOLUTION_EXPORT init(QQmlEngine *engine);
94}
95
96#endif // VIEWSOLUTIONS_H
The ViewSolutions namespace.
QSharedPointer< ModelStorage > init(QQmlEngine *engine)
init this method import all qml resources to your project and creates the central model storage of th...
void initResources()
initResources loads the QML resources of the ViewSolutions module.
#define VIEWSOLUTION_EXPORT
VIEWSOLUTION_EXPORT marks a symbol as part of the public ViewSolutions API.