Nominate our 2022 Qt Champions!

[Solved]why is there no auto-fetching tableview

  • I could be wrong but I do not find a QtxxxView that will auto-fetch from the database. What I'm talking about is displaying a grid and as the user scrolls up or down retrieve (fetch) the data required by the display. It seems silly to retrieve all the records at one time. Yes I'm sure it can be written but why it's not a built-in feature is beyond me (It's was available in FoxPro over 10 years ago). Has someone written this code or could someone provide a link. At least tell me how to get it done.

  • You need to google search the phrase
    "Qt lazy loading".

    That will return plenty of stuff. Following the articles works but IMO should be a simple flag in all the QxxxxViews.


Log in to reply