Add QThread in QML testcase