figured out how to reset qtextstream