Search code examples
c++qtuser-interfacescrollqwidget

Qt List Widget dynamic content loading when scroll


I would like to create a widget for Qt (not QML) which derives from, for example, QListWidget, and loads the content dynamically when scrolling up/down, as most of Android/iOS applications does.

Does anybody know which is the best approach?

Cheers,


Solution

  • Loading the content dynamically doesn't mean it's infinite. For that, just implement a model's fetchMore() and canFetchMore() methods.