Qt: add useful logging