yes, Task inherits QThread. the CustomProgressDialog is created on the stack within the main UI thread, inside a MainWindow's function to be more exact. strange...