Handle IME type and setup related Qt input hint