I create a button,and use
connect(button, SIGNAL(clicked()),this, SLOT(process() )) ,
In process(),there is a loop,for example,1...1000000.
when I click the button,the UI pause.

How to deal with it? thank you.