(self, stream)
Set an iterator over the rows.

        The iterator will be advanced on demand by `fetchMore`, while storing
        the returned values. Previous stream and its cached data is discarded.
Set an iterator over the rows.
Set an iterator over the rows .
def setPreviewStream(self, stream):
        # type: (Iterator[List[str]]) -> None
        """
        Set an iterator over the rows.

        The iterator will be advanced on demand by `fetchMore`, while storing
        the returned values. Previous stream and its cached data is discarded.
        """
        self.beginResetModel()
        self.__iter = stream
        self.__rows = []
        self.__rowCount = self.__colCount = 0
        self.__canFetchMore = True
        self.__error = None
        self.endResetModel()
def setPreviewStream ( self , stream ) : # type: (Iterator[List[str]]) -> None self . beginResetModel ( ) self . __iter = stream self . __rows = [ ] self . __rowCount = self . __colCount = 0 self . __canFetchMore = True self . __error = None self . endResetModel ( )