fix resizing for qtthreaded