[Qt-interest] QSqlQueryModel with QSortFilterProxyModeldoesn'tupdate properly
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Mon Jan 17 18:34:51 CET 2011
-----Original Message-----
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com [mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On Behalf Of Andre Somers
Sent: Monday, January 17, 2011 9:18 AM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] QSqlQueryModel with QSortFilterProxyModeldoesn'tupdate properly
Op 17-1-2011 18:14, Scott Aron Bloom schreef:
> I had worked on, but never finished, a patch to the proxy filter model to auto call the fetchmore till its available rows was enough to populate the screen.
Sounds interesting, but I don't think it would work properly. That would
mean that as soon as you start scrolling and more records are fetched,
data may appear at random places in your view as the data gets sorted.
Doesn't sound like acceptable behaviour. Or do I misunderstand something
here?
André
_______________________________________________
That's actually exactly what happens now... For large SQL queries, where the default fetch (though I could never figure out how to change the default row count to fetch via the api)
If you use a sort filter, it will actually randomly pop up info as you say...
That's why I usually recommend you do the sort via the SQL...
More information about the Qt-interest-old
mailing list