Ask the table its number of rows (using getRowCount()
), which will return the number of filtered (visible) rows. Iterate from 0 to the rowCount, convert each row index to the model index using convertRowIndexToModel()
, and ask your model the data at each model index to build the list of filtered (visible) data.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…