Re: Objects between QT Gui and another QT Thread
you dont need sharedmemory - that is IPC iirc.
Just because a thread stops running doesn't mean all objects that were accessed in the thread die. You can use moveToThread at 'any' time.
If the things are are loading are not even QObjects (e.g data containers like QList ...), then you don't need to care what thread they are in. You should just care about encapsulation (ie it is in the correct class/owner) and that multi-threaded access is properly handled.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks