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.
 
 
 
 
 

23 lines
536 B

#ifndef APPLICATIONCONTEXT_H
#define APPLICATIONCONTEXT_H
#include <QQmlApplicationEngine>
class ApplicationCtx : public QObject
{
Q_OBJECT
public:
ApplicationCtx(QQmlApplicationEngine*);
~ApplicationCtx();
QQmlApplicationEngine* appEngine();
static ApplicationCtx* GetInstance();
static void SetApplicationContext(QQmlApplicationEngine*);
private:
static ApplicationCtx* m_instance;
QQmlApplicationEngine* m_applicationEngine;
public slots:
void QuitApplication();
};
#endif // APPLICATIONCTX_H