adding items to listwidget is slow in windows
-
Hi ,
in my application i need to add more items (more than 20 k ) to the list widget i am adding them using a for loopi calculated the time taken by this operation using the QElapsed timer and in linux the same function(where i am adding item to list widget) take less than 500msec which is fine,
where as in windows it is taking 145281 msec (approximately 2min 40 sec)is there a way i can reduce this time i already tried with
ui->listwidget->setuniformitemsize(true)
but no luck
please somebody suggest me a way to reduce the time and improve my application performance
and i would really want to know why this issue happens with windows and works perfectly fine in linux
please help me with this realy looking forward to your valuable suggestions
-
Use a proper model instead the convenience widgets - they're made for convenience, not for speed.
-
@Christian-Ehrlicher ok i will try it thank you