[Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s
mitch.curtis at qt.io
Tue Jul 12 14:19:03 CEST 2016
> -----Original Message-----
> From: Development [mailto:development-bounces+mitch.curtis=qt.io at qt-
> project.org] On Behalf Of Giuseppe D'Angelo
> Sent: Tuesday, 12 July 2016 11:28 AM
> To: development at qt-project.org
> Subject: Re: [Development] QTableView gets freezed in showing data read
> from SQLite database , which is updated dynamically with 2000 rows in 2s
> Il 12/07/2016 10:49, Mitch Curtis ha scritto:
> > As someone who has more experience with Qt Quick, I gotta ask... does
> QTableView create widgets for every row in the model all at once?
> It does not create any sub widget. The whole point of the design of item
> views is to use a few delegate objects (1, out of the box) to paint
> themselves, not to create thousands of sub-widgets.
So what Andre said ("2k push buttons") is wrong?
> (Besides, this is the wrong ML for discussing this problem...)
Why? I'm just clarifying a point brought up in response to someone's question about usage of Qt.
> Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
> KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908 KDAB - The
> Qt Experts
More information about the Development