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

QQuickComboBox::setModel() does an unguarded qvariant_cast on the previous value

    XMLWordPrintable

Details

    Description

      QQuickComboBox::setModel() does an unguarded qvariant_cast on the previous value.

      This will crash if you delete the previous model, then subsequently call setModel(newModel).

      See https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickcombobox.cpp.html#1021

       

      This may be related to https://bugreports.qt.io/browse/QDS-5030

      Attachments

        For Gerrit Dashboard: QTBUG-136672
        # Subject Branch Project Status CR V

        Activity

          People

            mitch_curtis Mitch Curtis
            chrisadams Christopher Adams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes