#ifndef SANDBOXAPP_H #define SANDBOXAPP_H #include #include #ifdef QT_DEBUG #include #endif class SandboxApp : public QGuiApplication { public: SandboxApp(int &argc, char **argv); void startEngine(); public slots: void restartEngine(); private: QQmlApplicationEngine m_engine; #ifdef QT_DEBUG QFileSystemWatcher m_watcher; #endif const QUrl m_url { #ifdef QT_DEBUG QUrl::fromLocalFile(SANDBOX_SRC_DIR + QStringLiteral("/main.qml")) #else QStringLiteral("qrc:/main.qml") #endif }; }; #endif // SANDBOXAPP_H