Don't access qApp directly from Platform's ctor

QApplication might not be created yet, so delay it
With a timer for now. Don't guarantee this will stay.
Explicit init by the user might be an alternative.
This commit is contained in:
Sergio Martins
2022-04-05 22:29:01 +01:00
parent 3ba4bc2d08
commit 793e48150a
4 changed files with 30 additions and 6 deletions

View File

@@ -24,6 +24,9 @@ public:
~Platform_qtquick() override;
const char *name() const override;
std::shared_ptr<ViewWrapper> focusedView() const override;
private:
void init();
};
}