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

QCombobox leaks memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.2, 5.15.2
    • None
    • Windows 10 (64 bit)
      Windows 7 (64 bit)
      Windows 7 embedded (32 bit)
    • Windows

    Description

      QCombobox leaks memory whenever (at least two) combo boxes get their content updated.

      Very simple test scenario (the attached files contain this sample project):

      1. Start a standard QWidgets project in QtCreator
      2. Add two combo boxes to the main window (via Designer inside QCreator)
      3. Add a timer to the MainWindow class that fires quickly and periodically, e.g. once per millisecond; connect its timeout signal to a MainWindow class's slot method, e.g. MainWindow::OnTimeout()
      4. In this OnTimeout() method implement for each combo box: a) clear its content, b) add one or more items
        [To speed up the process these two steps per combo box could even be executed several times within a loop]
      5. Build and run the program
      6. Check Windows Task Manager to see how memory consumption increases

      Not sure but this bug might be related to QTBUG-42446

      Attachments

        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
            gludwig Paco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes