How to improve qscrollarea performance with large number of images?
<p>I'm trying to implement a document/image viewer using qscrollarea. I found qscrollarea performing slow when loading files with many pages. For a document with about 1.3k pages, it took about half a minute to finish loading.</p>

<p>The main loading procedure is like this:</p>

<pre><code>for (int i = 0; i &lt; DOC_COUNT; ++i) {
  QLabel *label = new QLabel();
  label-&gt;setPixmap(IMAGE);
  qvboxlayout_-&gt;addWidget(label);
  QCoreApplication::processEvents();
}
</code></pre>

<p>I know android has a mechanism that the system automatically inflates, recycles and reuses views. Does qt has such a mechanism?</p>