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)
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):
- Start a standard QWidgets project in QtCreator
- Add two combo boxes to the main window (via Designer inside QCreator)
- 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()
- 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] - Build and run the program
- Check Windows Task Manager to see how memory consumption increases
Not sure but this bug might be related to QTBUG-42446