Quote Originally Posted by cxl2253 View Post
But the emitMsg is called in static callback function.
setText() isn't a static method and you can emit signals from it. Touching widgets from a non-GUI thread will end with random crashes.

Quote Originally Posted by cxl2253 View Post
Do you mean I should decalre the QFile file variable as private member variable of storescpThread?
You already have one, but you don't use it.