That depends on what the processing is and what level of control you have over it.

For a fair sized discussion of this topic see Keeping the GUI Responsive. That was written a few years ago before Qt5 but all the same considerations apply.