执行繁重任务时加载屏幕

Loading screen while doing heavy task

执行某项任务时,需要几秒钟时间并使整个程序滞后,有没有办法实现一个等待任务完成然后自行删除的屏幕?

如果您的任务在用户启动应用程序时运行,您可以在线程完成后使用 Splash screen. Otherwise I suggest you to run the task in another thread and get the output 来执行任务