Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Load QML files in a secondary thread
deleted57 last edited by
My qml code take some time to be loaded and, in the meanwhile, I would to show a splash screen with some animation showing the application is alive. The qml is loaded inside the main function using QQmlApplicationEngine object but since the load function doesn't return before load is complete the main GUI loop is not started (app.exec()) and I can not receive timer event (for example) to make animation in the splash screen window. I'm trying to move load process in a secondary thread and switch back to main once finished but doesn't work. Someone have a suggestion about?