I found that “addtoviewport” did not work immediately.
...//Some Complex Computations
It will not show the “LoadingMessage” Widget until all the computations are completed. So…How to make computations after “LoadingMessage” being added to viewport?
My solution is: create a new thread