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

Excess CPU usage when Open Files dialog is visible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 4.8.7
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Mac and PC

      Description

      I was getting CPU 150% in Activity Monitor on the Mac with an Open File dialog visible. Close the dialog and the % goes down to 3 - 4%, which is the background activity of my program. What I finally found was that if I turn off all of the QTimers in my program when the Open File dialog is open, CPU % goes down to about 1%.
      There must be a bug that gets Qt into a loop of some kind if a Timer goes off (or maybe its the signal from the Timer) when the dialog is open.
      Lots of discussion online about this, but nothing I saw said anything about QTimers affecting the problem.

        Attachments

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

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              tbartoo Tim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes