diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp index 5b452a7a1b0..eeaacc7794d 100644 --- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp @@ -2471,7 +2471,7 @@ void tst_QComboBox::task190205_setModelAdjustToContents() //wait needed in order to get the combo initial size QTRY_VERIFY(box.isVisible()); - box.setModel(new QStringListModel(finalContent)); + box.setModel(new QStringListModel(finalContent, &box)); QComboBox correctBox; setFrameless(&correctBox);