QtConcurrent::run children warning
Solved
General and Desktop
-
Hi,
I got following problem during my code execution:
When I run function via QtConcurrent::run where I got:QProcess unpackProcess( this ); unpackProcess.start( "powershell ", args );
I get debug message:
QObject: Cannot create children for a parent that is in a different thread.
(Parent is InvSystem::AppUpdater(0x547fd28), parent's thread is QThread(0x1bafde10), current thread is QThread(0x1ee19410)Despite that code does everything what is suppose to do :)
Is it safe to leave it like that?
Or there is some cleaner way to do that.
Any hints would be priceless.
Thanks,
Tomek -
Why do you need QtConcurrent to run a QProcess?
-