✨ Worker is able to return its QThread.
This commit is contained in:
@@ -29,3 +29,6 @@ class Worker(QtCore.QRunnable):
|
||||
Initialise the runner function with passed args, kwargs.
|
||||
"""
|
||||
self.fn(*self.args, **self.kwargs)
|
||||
|
||||
def thread(self) -> QtCore.QThread:
|
||||
return QtCore.QThread.currentThread()
|
||||
|
||||
Reference in New Issue
Block a user