Indeed I was confused about the main thread and whether I had to create that or not, but it didn't work when I did not create a mainthread. I will remove this and start with the code you posted in the previous thread.
I still get these "XLib: unexpected async reply" errors. I have the feeling that the thread is not ended well. The lengthy process is executed well, but if I execute something in MyMDIMainWindow, the program does not respond anymore. I do not start mij lengthy process in MyMDIMainWindow, but from a widget that is placed in one of the dockwindows of the MyMDIMainWindow. Is this a problem?
I also do not delete the lengthyprocess thread. I probably should, but how? I post the ended thread event, but I never get in the customEvent function...
Bookmarks