qtquick|examples: Initialize the platform

Fixes a crash.
There's more (unrelated) crashes though, will look at those next.
This commit is contained in:
Sergio Martins
2022-05-30 18:39:35 +01:00
parent 230317551b
commit 095dbe1a7f
3 changed files with 6 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ int main(int argc, char *argv[])
QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);
#endif
QGuiApplication app(argc, argv);
KDDockWidgets::initFrontend(KDDockWidgets::FrontendType::QtQuick);
auto &config = KDDockWidgets::Config::self();
auto flags = config.flags();