simplify Qt switching