Qt models behind proxies and fetchMore () / canFetchMore ()

I'm interested in knowing what views will look like when the main data model with incremental data retrieval is behind a proxy server or proxy chain.

How should a proxy server that performs position permutations, such as ungrouping proxy (for example: http://lynxline.com/jongling-qt-models/ ), implement fetchMore () / canFetchMore () support?

+3
source share
1 answer

Studying the source QSortFilterProxyModelallows us to conclude that:

  • QSortFilterProxyModelallows you to access already selected rows. Call rowCount, dataetc. Will behave as if there is no more data in the source table.
  • QSortFilterProxyModel ( QAbstractProxyModel ) canFetchMore fetchMore .

, QSortFilterProxyModel, , . , . . .

canFetchMore fetchMore , - ( UngroupProxyModel) .

QTableView , . , -2; -3; 2; 3 ( ; ), -2; -3; 2; 3; empty row; empty row. . , . , , -3; -2; empty row; empty row; 2; 3, .. . , .

. . . , -, , .

, , . , . (, while(model->canFetchMore()) { model->fetchMore(); }), - , .

+3

All Articles