<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Hi.<br>
</span>
<div>I love Qt.<br>
</div>
<div>These days I have been working on Qt project with 5.15 of version.<br>
</div>
<div>Here I have one issue on QTableView/Model.<br>
</div>
<div> I have a playlist with hundreds of thousands of records. Each record has 100+ fields.<br>
</div>
<div>It takes a little time to load all of the playlists fully.<br>
</div>
<div>But my client wants me to load it instantly So I tried with custom model and scroll bar.<br>
</div>
<div>What I tried is to load only visible records instead of loading all records.<br>
</div>
<div>So the model is changed by SQL Query (ex: "Select * from t_list Order by name asc limit 30, 100") when scrolling.<br>
</div>
<div>Everything is good.<br>
</div>
<div>But I can not implement "SelectionModel" on this model.<br>
</div>
<div>For example, I want to select first record and last record.<br>
</div>
<div>For now, If I select the first record and scroll to down then, I can not keep selections because the model is changed by scrolling.<br>
</div>
<div><br>
</div>
<div>How can I solve this issue efficiently?<br>
</div>
<div>Or is there another way to load a list with hundreds of thousands of records instantly?<br>
</div>
<div><br>
</div>
<div>Please reply me kindly.<br>
</div>
<div><br>
</div>
<div>Best regards,<br>
</div>
<span>Milos.</span><br>
</div>
</body>
</html>