WTableView + VirtualModel + database
Added by Vasiliy Vasiliy almost 11 years ago
Hi, everyone.
I want to make virtual scrolling in WTableView.
Data for this I will get from a database.
I use VirtualModel.cpp example. The "data" function return some data whith specified row and col index.
But I don't want to make query to the database for a single cell. I will make a transitional table in memory for loading data to the WTableView.
How can I call my function for filling my transitional table before "data" function will be called, and how can I get the indexes for needed rows and cells?
Replies (1)
RE: WTableView + VirtualModel + database - Added by Wim Dumon almost 11 years ago
Hello Vasiliy,
Dbo's Querymodel solves this through caching. You can take a look at the source of DboQueryModel.
Best regards,
Wim.