def METHOD_NAME(self):
    """Call submitToQtMainThread from a Qt thread pool"""
    class Runner(qt.QRunnable):
        def __init__(self, fn):
            super(Runner, self).__init__()
            self._fn = fn
        def run(self):
            self._fn()
        def autoDelete(self):
            return True
    threadPool = qt.silxGlobalThreadPool()
    runner = Runner(self._threadedTest)
    threadPool.start(runner)
    for i in range(100):  # Loop over for 10 seconds
        self.qapp.processEvents()
        done = threadPool.waitForDone(100)
        if done:
            break
    else:
        self.fail('Thread pool task still running')