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

QTableWidget loading data too slow

    XMLWordPrintable

Details

    • Windows

    Description

      when I display data with QTableWidget, I find that if you call setSelectionResizeMode() and pass  QHeaderView::ResizeToContents parameter to this function, the program costs a long time to load my data(the table is not very large), and it  seems crashed. But if you replace the parameter with QHeaderView::InteractiveQHeaderView::Fixed or QHeaderView::Stretch, it shows my data in an instant.  The larger the table is, the slower the program.

      The code is simple. please view the attachments.

      Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.cpp
          1 kB
        3. mainwindow.h
          0.5 kB
        4. TableWidget.pro
          1.0 kB
        5. TableWidget.pro.user
          24 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ulookabit2 gobeyong mei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes