Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4293

Performance issue when scrolling in QTreeView with root decorated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.5.2
    • Widgets: Itemviews
    • None

      Try the following example to experience it.

      #include <QtGui>
      #include <QDebug>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      QStringListModel model;
      QStringList list;
      for (int i = 0; i < 20000; ++i)
      list << QString::number;
      model.setStringList(list);

      QTreeView view;
      view.setRootIsDecorated(true); // with no root decorated the speed is ok
      view.setModel(&model);

      view.show();

      app.exec();
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes