[Interest] Overhead for QObject based data models in QML

Jan Kundr√°t jkt at flaska.net
Sat Dec 28 09:58:00 CET 2013


On Saturday, 28 December 2013 03:44:07 CEST, Preet wrote:
> I'm concerned about what kind of overhead this incurs when I have a
> fairly large list (say 100's of elements). It seems like creating that
> many QObjects probably isn't a good idea.

Hundreds is not "that many". On the other hand, there is no reason to use 
QObject instances within your QAIM unless you need signals/slots within the 
model.

If all you need is a way of notifying about changes, then the dataChanged 
signal is what one should use.

Cheers,
Jan

-- 
Trojit√°, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/



More information about the Interest mailing list