QTableView -> optimize performance
-
@Christian-Ehrlicher Well, the program works much better than before. Anyway, I'll start from scratch with only one table and see what happens and will thus provide a minimal example.
My guess right now is that deciding which data type (number, boolean, string) to use in data() is the bottleneck. Could I just put the json values into a QVariant?
@andi456 Found my mistake, it was a bad design decision by me, because I did not know how the data() function works. I realized this, because nlohmann/json.hpp should indeed provide fast access, while not being the fastest parser around, and the performance being slow without any data being displayed.
I can now confirm, that the mentioned json-class is sufficiently fast to be used in the view/model framework.