qlit: use QType instead of int