[qt] use windowType