You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
354 B
22 lines
354 B
10 months ago
|
#ifndef APP_H
|
||
|
#define APP_H
|
||
|
#include <QObject>
|
||
|
#include <QQmlApplicationEngine>
|
||
|
|
||
|
class App: public QObject
|
||
|
{
|
||
|
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
App(QObject* parent = Q_NULLPTR);
|
||
|
~App();
|
||
|
|
||
|
Q_INVOKABLE void loadQml();
|
||
|
void setEngine(QQmlApplicationEngine *engine) { m_engine = engine; }
|
||
|
|
||
|
private:
|
||
|
QQmlApplicationEngine* m_engine;
|
||
|
};
|
||
|
|
||
|
#endif // APP_H
|