U r so kind!
thank u very much!

It succeeds without any complains, even no crash which I mentoned above after registering my data type according to your suggestions.

So, I think that crash was caused by the incorrect usage of the connect between slots and signals. that is, thread used functions which was located in other threads, which will cause some uncertain results.

Again, thank u very much!


Quote Originally Posted by caduel View Post
i) indeed, with DirectConnection the call will be executed in the wrong thread. Not good

ii) you have to use qRegisterMetaType.
Probably as
Qt Code:
  1. qRegisterMetaType<Log::LogLevel>("Log::LogLevel");
To copy to clipboard, switch view to plain text mode 
(i.e. you have to include the namespace/class name, I think).

If this does not fix it:
Could you be more elaborate on what "won't work" means?

HTH