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

QComboBox crash on currentIndexChanged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 Beta
    • 4.7.3, 5.4.0 Alpha
    • None
    • Fedora 12

    Description

      In my app under certain conditions the model of the QComboBox is reset directly following the currentIndexChanged event. This results in a crash because the QModelIndex becomes invalid, but is still being used in qcombobox.cpp. See attached patch for more info.

      Attachments

        1. qcomboboxcrash_valgrind.log
          10 kB
          Gil Moskowitz
        2. qcombobox.patch
          0.5 kB
          Geoff Wright
        For Gerrit Dashboard: QTBUG-20415
        # Subject Branch Project Status CR V

        Activity

          People

            ablasche Alex Blasche
            gpwright Geoff Wright
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes