I will remember this next time.
Next time when you provide code, make sure it is the real code you have and that it compiles. The snippet you posted here will not compile.
I have fix the problem.The reason is that I get the wrong variaties.
And anthor problem is how to use the UI class in the QTHREAD,does it work?