Load QML files in a secondary thread



  • Hi all
    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?
    Thank you


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.