QTextStream

class PyQt5.QtCore.QTextStream

C++ documentation