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

QTableWidget very high CPU usage when both horizontal and vertical scroll bars shown

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      4422a9bd88602c8dfde8648ad39692d968295cfc

      Description

      We recently upgraded from Qt 5.6 to the latest Qt and observed very high CPU usage (100% of a single core) by our QTableWidgets. We tracked this down to the scroll bars being present or not. When the table widget is made small enough that both horizontal and vertical scrollbars are needed, CPU usage hits 100%. When just one scrollbar is active, it does not display this behavior. A user does not need to be scrolling to hit high CPU usage. Just having the scrollbars shown is enough to get high CPU usage.

       

      This behavior is not present on Qt 5.6, but is with Qt 5.13.2 on both Windows using mingw 7.3 64 bit and on Centos 7 using 64 bit GCC.

       

      Please refer to the attached example to see the issue.

        Attachments

        1. example.zip
          4 kB
        2. qtbug79906.zip
          4 kB

          Issue Links

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

            Activity

              People

              Assignee:
              chehrlic Christian Ehrlicher
              Reporter:
              nickcritelli Nicholas Critelli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes