a little better but still a qt c++ warning about threads. usable though