C++ (Qt) qint64 time = QDateTime::currentMSecsSinceEpoch(); for ( int var = 0; var < 100500; ++var ) { ui->listWidget->addItem( "Item #" + QString::number( var + 1 ) ); } qDebug() << QDateTime::currentMSecsSinceEpoch() - time;
C++ (Qt)void QWidget::setUpdatesEnabled ( bool enable )